Home
last modified time | relevance | path

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

/external/mockito/src/main/java/org/mockito/internal/listeners/
DStubbingLookupNotifier.java10 import org.mockito.stubbing.Stubbing;
17 public static void notifyStubbedAnswerLookup(Invocation invocation, Stubbing stubbingFound, in notifyStubbedAnswerLookup()
18 … Collection<Stubbing> allStubbings, CreationSettings creationSettings) { in notifyStubbedAnswerLookup()
31 final private Stubbing stubbing;
32 final private Collection<Stubbing> allStubbings;
36 Stubbing stubbing, in Event()
37 Collection<Stubbing> allStubbings, in Event()
51 public Stubbing getStubbingFound() { in getStubbingFound()
56 public Collection<Stubbing> getAllStubbings() { in getAllStubbings()
DStubbingLookupEvent.java9 import org.mockito.stubbing.Stubbing;
25 Stubbing getStubbingFound(); in getStubbingFound()
30 Collection<Stubbing> getAllStubbings(); in getAllStubbings()
/external/mockito/src/main/java/org/mockito/internal/junit/
DUnusedStubbingsFinder.java11 import org.mockito.stubbing.Stubbing;
32 Set<Stubbing> stubbings = AllInvocationsFinder.findStubbings(mocks); in getUnusedStubbings()
34 List<Stubbing> unused = filter(stubbings, new Filter<Stubbing>() { in getUnusedStubbings()
35 public boolean isOut(Stubbing s) { in getUnusedStubbings()
54 Set<Stubbing> stubbings = AllInvocationsFinder.findStubbings(mocks); in getUnusedStubbingsByLocation()
59 for (Stubbing s : stubbings) { in getUnusedStubbingsByLocation()
71 for (Stubbing s : stubbings) { in getUnusedStubbingsByLocation()
DUnusedStubbings.java10 import org.mockito.stubbing.Stubbing;
21 private final Collection<? extends Stubbing> unused;
23 UnusedStubbings(Collection<? extends Stubbing> unused) { in UnusedStubbings()
34 for (Stubbing candidate : unused) { in format()
56 for (Stubbing stubbing : unused) { in reportUnused()
DDefaultStubbingLookupListener.java13 import org.mockito.stubbing.Stubbing;
56 …ic List<Invocation> potentialArgMismatches(Invocation invocation, Collection<Stubbing> stubbings) { in potentialArgMismatches()
58 for (Stubbing s : stubbings) { in potentialArgMismatches()
DArgMismatchFinder.java9 import org.mockito.stubbing.Stubbing;
22 for (Stubbing stubbing : AllInvocationsFinder.findStubbings(mocks)) { in getStubbingArgMismatches()
/external/mockito/src/main/java/org/mockito/internal/debugging/
DInvocationsPrinter.java10 import org.mockito.stubbing.Stubbing;
22 Collection<Stubbing> stubbings = Mockito.mockingDetails(mock).getStubbings(); in printInvocations()
40 LinkedList<Stubbing> unused = ListUtil.filter(stubbings, new ListUtil.Filter<Stubbing>() { in printInvocations()
41 public boolean isOut(Stubbing s) { in printInvocations()
52 for(Stubbing s:stubbings) { in printInvocations()
/external/mockito/src/main/java/org/mockito/internal/invocation/finder/
DAllInvocationsFinder.java9 import org.mockito.stubbing.Stubbing;
42 public static Set<Stubbing> findStubbings(Iterable<?> mocks) { in findStubbings()
43 Set<Stubbing> stubbings = new TreeSet<Stubbing>(new StubbingComparator()); in findStubbings()
45 … Collection<? extends Stubbing> fromSingleMock = new DefaultMockingDetails(mock).getStubbings(); in findStubbings()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubbingComparator.java8 import org.mockito.stubbing.Stubbing;
15 public class StubbingComparator implements Comparator<Stubbing> {
19 public int compare(Stubbing o1, Stubbing o2) { in compare()
DInvocationContainerImpl.java17 import org.mockito.stubbing.Stubbing;
143 public List<Stubbing> getStubbingsDescending() { in getStubbingsDescending()
150 public Collection<Stubbing> getStubbingsAscending() { in getStubbingsAscending()
151 List<Stubbing> result = new LinkedList<Stubbing>(stubbed); in getStubbingsAscending()
DUnusedStubbingReporting.java8 import org.mockito.stubbing.Stubbing;
19 public static boolean shouldBeReported(Stubbing stubbing) { in shouldBeReported()
DStrictnessSelector.java9 import org.mockito.stubbing.Stubbing;
28 …public static Strictness determineStrictness(Stubbing stubbing, MockCreationSettings mockSettings,… in determineStrictness()
DStubbedInvocationMatcher.java13 import org.mockito.stubbing.Stubbing;
20 public class StubbedInvocationMatcher extends InvocationMatcher implements Serializable, Stubbing {
/external/mockito/src/main/java/org/mockito/internal/invocation/
DUnusedStubsFinder.java10 import org.mockito.stubbing.Stubbing;
26 … List<Stubbing> fromSingleMock = MockUtil.getInvocationContainer(mock).getStubbingsDescending(); in find()
27 for(Stubbing s : fromSingleMock) { in find()
/external/mockito/src/test/java/org/mockito/internal/listeners/
DStubbingLookupNotifierTest.java12 import org.mockito.stubbing.Stubbing;
28 Stubbing stubbingFound = mock(Stubbing.class);
29 Collection<Stubbing> allStubbings = mock(Collection.class);
/external/mockito/src/main/java/org/mockito/
DMockingDetails.java11 import org.mockito.stubbing.Stubbing;
91 Collection<Stubbing> getStubbings(); in getStubbings()
DMockito.java36 import org.mockito.stubbing.Stubbing;
/external/mockito/src/test/java/org/mockito/internal/
DAllInvocationsFinderTest.java10 import org.mockito.stubbing.Stubbing;
82 …List<Stubbing> stubbings = new ArrayList<Stubbing>(findStubbings(asList(mockOne, mockOne, mockTwo)… in provides_stubbings_in_order()
/external/mockito/subprojects/inline/src/test/java/org/mockitoinline/
DStubbingLocationTest.java11 import org.mockito.stubbing.Stubbing;
26 Set<Stubbing> stubbings = AllInvocationsFinder.findStubbings(Collections.singleton(mock)); in stubbing_location_should_be_the_correct_point()
/external/mockito/src/test/java/org/mockito/internal/junit/
DUnusedStubbingsTest.java11 import org.mockito.stubbing.Stubbing;
28 UnusedStubbings stubbings = new UnusedStubbings(Collections.<Stubbing>emptyList()); in no_unused_stubbings()
/external/mockito/src/main/java/org/mockito/internal/util/
DDefaultMockingDetails.java14 import org.mockito.stubbing.Stubbing;
56 public Collection<Stubbing> getStubbings() { in getStubbings()
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsDeepStubs.java18 import org.mockito.stubbing.Stubbing;
64 for (Stubbing stubbing : container.getStubbingsDescending()) { in deepStub()
/external/mockito/src/main/java/org/mockito/stubbing/
DStubbing.java25 public interface Stubbing extends Answer { interface
/external/mockito/src/test/java/org/mockito/internal/util/
DDefaultMockingDetailsTest.java14 import org.mockito.stubbing.Stubbing;
162 Collection<Stubbing> stubbings = mockingDetails(mock).getStubbings(); in provides_stubbings_of_mock_in_declaration_order()
/external/dexmaker/
DAndroid.bp236 // Stubbing static methods is not an official mockito API.