Home
last modified time | relevance | path

Searched defs:mocks (Results 1 – 25 of 51) sorted by relevance

123

/external/mockito/src/test/java/org/mockito/internal/util/collections/
DHashCodeAndEqualsSafeSetTest.java41 HashCodeAndEqualsSafeSet mocks = new HashCodeAndEqualsSafeSet(); in mock_with_failing_equals_method_can_be_used() local
52 HashCodeAndEqualsSafeSet mocks = new HashCodeAndEqualsSafeSet(); in can_remove() local
63 HashCodeAndEqualsSafeSet mocks = HashCodeAndEqualsSafeSet.of( in can_add_a_collection() local
76 HashCodeAndEqualsSafeSet mocks = HashCodeAndEqualsSafeSet.of( in can_retain_a_collection() local
91 HashCodeAndEqualsSafeSet mocks = HashCodeAndEqualsSafeSet.of( in can_remove_a_collection() local
106 HashCodeAndEqualsSafeSet mocks = HashCodeAndEqualsSafeSet.of( in can_iterate() local
119 HashCodeAndEqualsSafeSet mocks = HashCodeAndEqualsSafeSet.of(mock1); in toArray_just_work() local
/external/mockito/src/main/java/org/mockito/internal/
DMockitoCore.java95 public <T> void reset(T... mocks) { in reset()
106 public <T> void clearInvocations(T... mocks) { in clearInvocations()
117 public void verifyNoMoreInteractions(Object... mocks) { in verifyNoMoreInteractions()
134 public void verifyNoMoreInteractionsInOrder(List<Object> mocks, InOrderContext inOrderContext) { in verifyNoMoreInteractionsInOrder()
140 private void assertMocksNotEmpty(Object[] mocks) { in assertMocksNotEmpty()
146 public InOrder inOrder(Object... mocks) { in inOrder()
183 public Object[] ignoreStubs(Object... mocks) { in ignoreStubs()
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/filter/
DNameBasedCandidateFilter.java21 public OngoingInjector filterCandidate(final Collection<Object> mocks, in filterCandidate()
36 private boolean tooMany(Collection<Object> mocks) { in tooMany()
40 …private List<Object> selectMatchingName(Collection<Object> mocks, Field candidateFieldToBeInjected… in selectMatchingName()
59 private boolean anotherCandidateMatchesMockName(final Collection<Object> mocks, in anotherCandidateMatchesMockName()
DMockCandidateFilter.java13 Collection<Object> mocks, in filterCandidate()
DTerminalMockCandidateFilter.java25 public OngoingInjector filterCandidate(final Collection<Object> mocks, in filterCandidate()
DTypeBasedCandidateFilter.java20 public OngoingInjector filterCandidate(final Collection<Object> mocks, in filterCandidate()
/external/mockito/src/main/java/org/mockito/internal/util/collections/
DHashCodeAndEqualsSafeSet.java115 public boolean removeAll(Collection<?> mocks) { in removeAll()
119 public boolean containsAll(Collection<?> mocks) { in containsAll()
123 public boolean addAll(Collection<?> mocks) { in addAll()
127 public boolean retainAll(Collection<?> mocks) { in retainAll()
131 private HashSet<HashCodeAndEqualsMockWrapper> asWrappedMocks(Collection<?> mocks) { in asWrappedMocks()
145 public static HashCodeAndEqualsSafeSet of(Object... mocks) { in of()
DSets.java13 public static Set<Object> newMockSafeHashSet(Iterable<Object> mocks) { in newMockSafeHashSet()
17 public static Set<Object> newMockSafeHashSet(Object... mocks) { in newMockSafeHashSet()
/external/mockito/src/main/java/org/mockito/internal/junit/
DUniversalTestListener.java22 …private Map<Object, MockCreationSettings> mocks = new IdentityHashMap<Object, MockCreationSettings… field in UniversalTestListener
50 private void reportUnusedStubs(TestFinishedEvent event, Collection<Object> mocks) { in reportUnusedStubs()
58 …static void emitWarnings(MockitoLogger logger, TestFinishedEvent event, Collection<Object> mocks) { in emitWarnings()
DUnusedStubbingsFinder.java24 public UnusedStubbings getUnusedStubbings(Iterable<Object> mocks) { in getUnusedStubbings()
46 public Collection<Invocation> getUnusedStubbingsByLocation(Iterable<Object> mocks) { in getUnusedStubbingsByLocation()
DArgMismatchFinder.java16 StubbingArgMismatches getStubbingArgMismatches(Iterable<Object> mocks) { in getStubbingArgMismatches()
DUnnecessaryStubbingsReporter.java24 private List<Object> mocks = new LinkedList<Object>(); field in UnnecessaryStubbingsReporter
/external/mockito/src/main/java/org/mockito/internal/invocation/finder/
DAllInvocationsFinder.java26 public static List<Invocation> find(Iterable<?> mocks) { in find()
42 public static Set<Stubbing> findStubbings(Iterable<?> mocks) { in findStubbings()
DVerifiableInvocationsFinder.java21 public static List<Invocation> find(List<?> mocks) { in find()
/external/mockito/src/main/java/org/mockito/
DMockito.java1975 public static <T> void reset(T ... mocks) { in reset()
1990 public static <T> void clearInvocations(T ... mocks) { in clearInvocations()
2035 public static void verifyNoMoreInteractions(Object... mocks) { in verifyNoMoreInteractions()
2054 public static void verifyZeroInteractions(Object... mocks) { in verifyZeroInteractions()
2360 public static InOrder inOrder(Object... mocks) { in inOrder()
2427 public static Object[] ignoreStubs(Object... mocks) { in ignoreStubs()
DMockitoDebugger.java17 String printInvocations(Object ... mocks); in printInvocations()
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/scanner/
DMockScanner.java44 public void addPreparedMocks(Set<Object> mocks) { in addPreparedMocks()
54 Set<Object> mocks = newMockSafeHashSet(); in scan() local
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/
DMockInjection.java56 private final Set<Object> mocks = newMockSafeHashSet(); field in MockInjection.OngoingMockInjection
70 public OngoingMockInjection withMocks(Set<Object> mocks) { in withMocks()
DPropertyAndSetterInjection.java106 …boolean injectMockCandidates(Class<?> awaitingInjectionClazz, Object injectee, Set<Object> mocks) { in injectMockCandidates()
116 private boolean injectMockCandidatesOnFields(Set<Object> mocks, in injectMockCandidatesOnFields()
/external/mockito/src/main/java/org/mockito/internal/configuration/
DInjectingAnnotationEngine.java78 Set<Object> mocks = newMockSafeHashSet(); in injectMocks() local
90 …tion(Object testClassInstance, Class<?> clazz, Set<Field> mockDependentFields, Set<Object> mocks) { in onInjection()
DDefaultInjectionEngine.java19 …public void injectMocksOnFields(Set<Field> needingInjection, Set<Object> mocks, Object testClassIn… in injectMocksOnFields()
/external/mockito/src/test/java/org/mockitousage/performance/
DLoadsOfMocksTest.java24 List<IMethods> mocks = new LinkedList<IMethods>(); in testSomething() local
/external/mockito/src/main/java/org/mockito/internal/invocation/
DUnusedStubsFinder.java23 public List<Invocation> find(List<?> mocks) { in find()
/external/mockito/src/main/java/org/mockito/internal/debugging/
DMockitoDebuggerImpl.java24 public String printInvocations(Object ... mocks) { in printInvocations()
/external/mockito/src/test/java/org/mockitousage/configuration/
DCustomizedAnnotationForSmartMockTest.java44 …tion(Object testClassInstance, Class<?> clazz, Set<Field> mockDependentFields, Set<Object> mocks) { in onInjection()

123