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

The following examples show how to use org.mockito.Mockito#any() . These examples are extracted from open source projects. 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
@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
private ServerCallHandler<String, Integer> anyCallHandler() {
  return Mockito.<ServerCallHandler<String, Integer>>any();
}
 
Example 3
Source Project: beam   File: ReduceFnRunnerTest.java    License: Apache License 2.0 4 votes vote down vote up
private static TriggerStateMachine.TriggerContext anyTriggerContext() {
  return Mockito.any();
}
 
Example 4
static Trigger.TriggerContext anyTriggerContext() {
	return Mockito.any();
}
 
Example 5
Source Project: beam   File: AfterFirstStateMachineTest.java    License: Apache License 2.0 4 votes vote down vote up
private static TriggerStateMachine.TriggerContext anyTriggerContext() {
  return Mockito.any();
}
 
Example 6
static Iterable<Integer> anyIntIterable() {
	return Mockito.any();
}
 
Example 7
Source Project: beam   File: ReduceFnRunnerTest.java    License: Apache License 2.0 4 votes vote down vote up
private static TriggerStateMachine.OnElementContext anyElementContext() {
  return Mockito.any();
}
 
Example 8
static Trigger.OnMergeContext anyOnMergeContext() {
	return Mockito.any();
}
 
Example 9
Source Project: big-c   File: TestFailoverController.java    License: Apache License 2.0 4 votes vote down vote up
private StateChangeRequestInfo anyReqInfo() {
  return Mockito.<StateChangeRequestInfo>any();
}
 
Example 10
Source Project: hadoop   File: TestFailoverController.java    License: Apache License 2.0 4 votes vote down vote up
private StateChangeRequestInfo anyReqInfo() {
  return Mockito.<StateChangeRequestInfo>any();
}
 
Example 11
static InternalWindowFunction.InternalWindowContext anyInternalWindowContext() {
	return Mockito.any();
}
 
Example 12
static TimeWindow anyTimeWindow() {
	return Mockito.any();
}
 
Example 13
static WindowAssigner.WindowAssignerContext anyAssignerContext() {
	return Mockito.any();
}
 
Example 14
static <T> Collector<T> anyCollector() {
	return Mockito.any();
}
 
Example 15
Source Project: big-c   File: TestDFSHAAdmin.java    License: Apache License 2.0 4 votes vote down vote up
private StateChangeRequestInfo anyReqInfo() {
  return Mockito.any();
}
 
Example 16
private static TimeWindow anyTimeWindow() {
	return Mockito.any();
}
 
Example 17
static TimeWindow anyTimeWindow() {
	return Mockito.any();
}
 
Example 18
static Trigger.OnMergeContext anyOnMergeContext() {
	return Mockito.any();
}
 
Example 19
static Trigger.OnMergeContext anyOnMergeContext() {
	return Mockito.any();
}
 
Example 20
static MergingWindowAssigner.MergeCallback anyMergeCallback() {
	return Mockito.any();
}