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

The following examples show how to use org.mockito.Matchers#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: AbstractTest.java    From office-365-connector-plugin with Apache License 2.0 5 votes vote down vote up
protected void mockEnvironment() {
    EnvVars envVars = mock(EnvVars.class);
    try {
        TaskListener taskListener = Matchers.any();
        when(run.getEnvironment(taskListener)).thenReturn(envVars);
    } catch (IOException | InterruptedException e) {
        throw new IllegalArgumentException(e);
    }
    when(envVars.expand(ClassicDisplayURLProviderBuilder.LOCALHOST_URL_TEMPLATE)).thenReturn(ClassicDisplayURLProviderBuilder.LOCALHOST_URL_TEMPLATE);
}
 
Example 2
Source File: BaseDetectorTest.java    From Android_Code_Arbiter with GNU Lesser General Public License v3.0 4 votes vote down vote up
public static BugInstance anyBugs() {
    return Matchers.<BugInstance>any();
}
 
Example 3
Source File: DocumentEventRouterTestBase.java    From swellrt with Apache License 2.0 4 votes vote down vote up
private static Doc.E anyElement() {
  return Matchers.<Doc.E>any();
}
 
Example 4
Source File: DocumentEventRouterTestBase.java    From swellrt with Apache License 2.0 4 votes vote down vote up
private static Map<String, String> anyAttribs() {
  return Matchers.<Map<String, String>>any();
}
 
Example 5
Source File: AbstractRobotTest.java    From swellrt with Apache License 2.0 4 votes vote down vote up
private static <K, V> Map<K, V> anyMapOf(Class<K> keyClass, Class<V> valueClass) {
  return Matchers.<Map<K, V>>any();
}
 
Example 6
Source File: PitMojoTest.java    From pitest with Apache License 2.0 4 votes vote down vote up
private Map<String, String> anyMap() {
  return Matchers.<Map<String, String>> any();
}
 
Example 7
Source File: ScmMojoTest.java    From pitest with Apache License 2.0 4 votes vote down vote up
private Map<String, String> anyMap() {
  return Matchers.<Map<String, String>> any();
}
 
Example 8
Source File: DocumentEventRouterTestBase.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
private static Doc.E anyElement() {
  return Matchers.<Doc.E>any();
}
 
Example 9
Source File: DocumentEventRouterTestBase.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
private static Map<String, String> anyAttribs() {
  return Matchers.<Map<String, String>>any();
}
 
Example 10
Source File: AbstractRobotTest.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
private static <K, V> Map<K, V> anyMapOf(Class<K> keyClass, Class<V> valueClass) {
  return Matchers.<Map<K, V>>any();
}
 
Example 11
Source File: DbxClientV1Test.java    From dropbox-sdk-java with MIT License 4 votes vote down vote up
private static Iterable<HttpRequestor.Header> anyHeaders() {
    return Matchers.<Iterable<HttpRequestor.Header>>any();
}
 
Example 12
Source File: DbxClientV2Test.java    From dropbox-sdk-java with MIT License 4 votes vote down vote up
private static Iterable<HttpRequestor.Header> anyHeaders() {
    return Matchers.<Iterable<HttpRequestor.Header>>any();
}