Home
last modified time | relevance | path

Searched refs:forObject (Results 1 – 8 of 8) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/bugs/
DCompareMatcherTest.java51 when(mock.forObject(leq(5))).thenReturn(""); in compareToNonCompareable()
53 assertThat(mock.forObject(NOT_A_COMPARABLE)).isNull();// a default value must be returned in compareToNonCompareable()
71 when(mock.forObject(startsWith("Hello"))).thenReturn(""); in compareToStringVsInt()
73 assertThat(mock.forObject(123)).isNull();// a default value must be returned in compareToStringVsInt()
78 when(mock.forObject(leq(5))).thenReturn(""); in compareToIntVsString()
80 mock.forObject("abc"); in compareToIntVsString()
103 when(mock.forObject(argThat(new TestMatcher()))).thenReturn("x"); in matchesOverloadsMustBeIgnored()
105 assertThat(mock.forObject(123)).isNull(); in matchesOverloadsMustBeIgnored()
117 when(mock.forObject(argThat(new TestMatcher()))).thenReturn("x"); in matchesWithSubTypeExtendingGenericClass()
119 assertThat(mock.forObject(123)).isNull(); in matchesWithSubTypeExtendingGenericClass()
[all …]
/external/guice/core/src/com/google/inject/internal/
DProviderMethodsModule.java65 return forObject(module, false, ProvidesMethodScanner.INSTANCE); in forModule()
70 return forObject(module, false, scanner); in forModule()
80 public static Module forObject(Object object) { in forObject() method in ProviderMethodsModule
81 return forObject(object, true, ProvidesMethodScanner.INSTANCE); in forObject()
84 private static Module forObject( in forObject() method in ProviderMethodsModule
/external/mockito/src/test/java/org/mockitousage/matchers/
DAnyXMatchersAcceptNullsTest.java31 assertEquals(null, mock.forObject(null)); in shouldAcceptNullsInAnyMatcher()
38 assertEquals(null, mock.forObject(null)); in shouldAcceptNullsInAnyObjectMatcher()
DMatchersTest.java270 when(mock.forObject(any())).thenReturn("matched"); in any_matcher()
272 assertEquals("matched", mock.forObject(123)); in any_matcher()
273 assertEquals("matched", mock.forObject("any string")); in any_matcher()
274 assertEquals("matched", mock.forObject("any string")); in any_matcher()
275 assertEquals("matched", mock.forObject(null)); in any_matcher()
/external/mockito/src/test/java/org/mockitousage/
DIMethods.java235 String forObject(Object object); in forObject() method
DMethodsImpl.java446 public String forObject(Object object) { in forObject() method in MethodsImpl
/external/clang/test/Analysis/
Divars.m90 forObject:(ManyIvars *)obj {
/external/guice/core/test/com/google/inject/spi/
DProviderMethodsTest.java397 install(ProviderMethodsModule.forObject(methodsObject));