Java Code Examples for org.mockito.Mockito#any()

The following examples show how to use org.mockito.Mockito#any() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HomeResourceFilteringTest.java    From crnk-framework with Apache License 2.0 6 votes vote down vote up
@Test
public void checkDoesDoFiltering() throws IOException {
	ResourceFilterContext filterContext = Mockito.any(ResourceFilterContext.class);
	Mockito.when(filter.filterResource(filterContext, Mockito.any(ResourceInformation.class), Mockito.eq(HttpMethod.GET))).
			thenReturn(FilterBehavior.FORBIDDEN);
	checkResponse(true);
}
 
Example 2
Source File: WindowOperatorContractTest.java    From flink with Apache License 2.0 4 votes vote down vote up
static InternalWindowFunction.InternalWindowContext anyInternalWindowContext() {
	return Mockito.any();
}
 
Example 3
Source File: WindowOperatorContractTest.java    From flink with Apache License 2.0 4 votes vote down vote up
static MergingWindowAssigner.MergeCallback anyMergeCallback() {
	return Mockito.any();
}
 
Example 4
Source File: WindowOperatorContractTest.java    From flink with Apache License 2.0 4 votes vote down vote up
static Trigger.OnMergeContext anyOnMergeContext() {
	return Mockito.any();
}
 
Example 5
Source File: WindowOperatorContractTest.java    From flink with Apache License 2.0 4 votes vote down vote up
static Trigger.OnMergeContext anyOnMergeContext() {
	return Mockito.any();
}
 
Example 6
Source File: WindowOperatorContractTest.java    From flink with Apache License 2.0 4 votes vote down vote up
static TimeWindow anyTimeWindow() {
	return Mockito.any();
}
 
Example 7
Source File: WindowOperatorContractTest.java    From flink with Apache License 2.0 4 votes vote down vote up
private static TimeWindow anyTimeWindow() {
	return Mockito.any();
}
 
Example 8
Source File: TestDFSHAAdmin.java    From big-c with Apache License 2.0 4 votes vote down vote up
private StateChangeRequestInfo anyReqInfo() {
  return Mockito.any();
}
 
Example 9
Source File: WindowOperatorContractTest.java    From flink with Apache License 2.0 4 votes vote down vote up
static <T> Collector<T> anyCollector() {
	return Mockito.any();
}
 
Example 10
Source File: WindowOperatorContractTest.java    From flink with Apache License 2.0 4 votes vote down vote up
static WindowAssigner.WindowAssignerContext anyAssignerContext() {
	return Mockito.any();
}
 
Example 11
Source File: WindowOperatorContractTest.java    From flink with Apache License 2.0 4 votes vote down vote up
static TimeWindow anyTimeWindow() {
	return Mockito.any();
}
 
Example 12
Source File: ServerInterceptorsTest.java    From grpc-nebula-java with Apache License 2.0 4 votes vote down vote up
private ServerCallHandler<String, Integer> anyCallHandler() {
  return Mockito.<ServerCallHandler<String, Integer>>any();
}
 
Example 13
Source File: TestFailoverController.java    From hadoop with Apache License 2.0 4 votes vote down vote up
private StateChangeRequestInfo anyReqInfo() {
  return Mockito.<StateChangeRequestInfo>any();
}
 
Example 14
Source File: TestFailoverController.java    From big-c with Apache License 2.0 4 votes vote down vote up
private StateChangeRequestInfo anyReqInfo() {
  return Mockito.<StateChangeRequestInfo>any();
}
 
Example 15
Source File: WindowOperatorContractTest.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
static Trigger.OnMergeContext anyOnMergeContext() {
	return Mockito.any();
}
 
Example 16
Source File: ReduceFnRunnerTest.java    From beam with Apache License 2.0 4 votes vote down vote up
private static TriggerStateMachine.OnElementContext anyElementContext() {
  return Mockito.any();
}
 
Example 17
Source File: WindowOperatorContractTest.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
static Iterable<Integer> anyIntIterable() {
	return Mockito.any();
}
 
Example 18
Source File: AfterFirstStateMachineTest.java    From beam with Apache License 2.0 4 votes vote down vote up
private static TriggerStateMachine.TriggerContext anyTriggerContext() {
  return Mockito.any();
}
 
Example 19
Source File: WindowOperatorContractTest.java    From flink with Apache License 2.0 4 votes vote down vote up
static Trigger.TriggerContext anyTriggerContext() {
	return Mockito.any();
}
 
Example 20
Source File: ReduceFnRunnerTest.java    From beam with Apache License 2.0 4 votes vote down vote up
private static TriggerStateMachine.TriggerContext anyTriggerContext() {
  return Mockito.any();
}