Home
last modified time | relevance | path

Searched refs:anyObject (Results 1 – 25 of 28) sorted by relevance

12

/external/mockito/src/test/java/org/mockitousage/bugs/varargs/
DVarargsNotPlayingWithAnyObjectTest.java13 import static org.mockito.Mockito.anyObject;
35 verify(mock).run((String) anyObject(), (String) anyObject()); in shouldMatchAnyVararg()
46 verify(mock).run((String[]) anyObject()); in shouldAllowUsingAnyObjectForVarArgs()
/external/mockito/src/test/java/org/mockitousage/verification/
DVerificationOnMultipleMocksUsingMatchersTest.java33 verify(list).add(anyObject()); in shouldVerifyUsingMatchers()
36 verify(map, times(2)).put(anyObject(), anyObject()); in shouldVerifyUsingMatchers()
59 verify(map, times(2)).put(anyObject(), anyInt()); in shouldVerifyMultipleMocks()
/external/mockito/src/test/java/org/mockito/internal/
DInvalidStateDetectionTest.java123 anyObject(); in shouldDetectMisplacedArgumentMatcher()
126 anyObject(); in shouldDetectMisplacedArgumentMatcher()
129 anyObject(); in shouldDetectMisplacedArgumentMatcher()
132 anyObject(); in shouldDetectMisplacedArgumentMatcher()
135 anyObject(); in shouldDetectMisplacedArgumentMatcher()
/external/mockito/src/test/java/org/mockitousage/misuse/
DDetectingMisusedMatchersTest.java21 import static org.mockito.Mockito.anyObject;
42 anyObject(); in misplaced_anyObject_argument_matcher()
90 verify(withFinal).finalMethod(anyObject()); in shouldSayUnfinishedVerificationButNotInvalidUseOfMatchers()
DExplicitFrameworkValidationTest.java18 import static org.mockito.Matchers.anyObject;
48 anyObject(); in shouldDetectMisplacedArgumentMatcher()
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingMapTest.java18 import static org.easymock.EasyMock.anyObject;
256 expect(map.containsKey(anyObject())).andReturn(false).anyTimes();
257 expect(map.get(anyObject())).andReturn(null).anyTimes();
259 expect(map.remove(anyObject())).andReturn(null).anyTimes();
296 expect(map.containsKey(anyObject())).andReturn(false).anyTimes();
298 expect(map.remove(anyObject())).andReturn(null).anyTimes();
328 expect(map.containsValue(anyObject())).andReturn(false).anyTimes();
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DFilterDefinitionTest.java3 import static org.easymock.EasyMock.anyObject;
43 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testFilterInitAndConfig()
97 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testFilterCreateDispatchDestroy()
160 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testFilterCreateDispatchDestroySupressChain()
229 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testGetFilterIfMatching()
266 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testGetFilterIfMatchingNotMatching()
DServletDefinitionPathsTest.java20 import static org.easymock.EasyMock.anyObject;
69 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in servletPath()
159 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in pathInfoWithServletStyleMatching()
270 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in pathInfoWithRegexMatching()
DServletPipelineRequestDispatcherTest.java20 import static org.easymock.EasyMock.anyObject;
93 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testIncludeManagedServlet()
159 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testForwardToManagedServlet()
229 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in forwardToManagedServletFailureOnCommittedBuffer()
DServletDefinitionTest.java19 import static org.easymock.EasyMock.anyObject;
53 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testServletInitAndConfig()
/external/mockito/src/test/java/org/mockitousage/matchers/
DGenericMatchersTest.java16 import static org.mockito.Matchers.anyObject;
32 when(sorter.convertDate((Date) anyObject())).thenReturn("two"); in shouldCompile()
DAnyXMatchersAcceptNullsTest.java36 when(mock.oneArg((Object) anyObject())).thenReturn("matched"); in shouldAcceptNullsInAnyObjectMatcher()
DMoreMatchersTest.java38 verify(mock).simpleMethod(anyObject()); in any_should_be_actual_alias_to_anyObject()
DMatchersTest.java46 import static org.mockito.Mockito.anyObject;
288 when(mock.oneArg((String) anyObject())).thenReturn("8"); in any_T_matcher()
289 when(mock.oneArg(anyObject())).thenReturn("9"); in any_T_matcher()
/external/mockito/src/test/java/org/mockitousage/basicapi/
DUsingVarargsTest.java121 Mockito.verify(foo).varArgs((String[]) Mockito.anyObject()); in shouldVerifyWithAnyObject()
122 Mockito.verify(foo).varArgs((String) Mockito.anyObject()); in shouldVerifyWithAnyObject()
129 Mockito.verify(foo).varArgs((String[]) Mockito.anyObject()); in shouldVerifyWithNullVarArgArray()
DMocksSerializationForAnnotationTest.java283 when(anyMock.matches(anyObject())).thenCallRealMethod(); in should_serialize_real_partial_mock()
DMocksSerializationTest.java309 when(mock.matches(anyObject())).thenCallRealMethod(); in should_serialize_real_partial_mock()
/external/mockito/src/test/java/org/mockitousage/examples/use/
DExampleTest.java91 inOrder.verify(mockCalculator).countNumberOfRelatedArticles((Article) anyObject()); in shouldPersistRecalculatedArticle()
92 inOrder.verify(mockDatabase, atLeastOnce()).save((Article) anyObject()); in shouldPersistRecalculatedArticle()
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DLenientCopyToolTest.java152 copyValue(anyObject(), anyObject(), any(Field.class)); in shouldContinueEvenIfThereAreProblemsCopyingSingleFieldValue()
/external/mockito/src/test/java/org/mockitousage/bugs/
DActualInvocationHasNullArgumentNPEBugTest.java24 when(mockFun.doFun((String) anyObject())).thenReturn("value"); in shouldAllowPassingNullArgument()
/external/mockito/src/main/java/org/mockito/
DArgumentMatchers.java145 return anyObject(); in any()
164 public static <T> T anyObject() { in anyObject() method in ArgumentMatchers
/external/walt/ios/WALT/
DWALTTouch.m27 UITouch *touch = [[event allTouches] anyObject];
/external/mockito/src/test/java/org/mockitousage/spies/
DSpyingOnRealObjectsTest.java65 when(spy.contains(anyObject())).thenReturn(true); in shouldAllowOverridingStubs()
/external/mockito/src/test/java/org/mockitousage/stacktrace/
DModellingDescriptiveMessagesTest.java162 when(mock.equals(anyObject())).thenReturn(false); in shouldMentionFinalAndObjectMethodsWhenMisplacedArgumentMatcher()
/external/easymock/src/org/easymock/
DEasyMock.java294 public static <T> T anyObject() { in anyObject() method in EasyMock

12