Home
last modified time | relevance | path

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

/external/mockito/src/main/java/org/mockito/internal/junit/
DUnusedStubbingsFinder.java7 import org.mockito.stubbing.Stubbing;
25 Set<Stubbing> stubbings = AllInvocationsFinder.findStubbings(mocks); in getUnusedStubbings()
27 List<Stubbing> unused = filter(stubbings, new Filter<Stubbing>() { in getUnusedStubbings()
28 public boolean isOut(Stubbing s) { in getUnusedStubbings()
47 Set<Stubbing> stubbings = AllInvocationsFinder.findStubbings(mocks); in getUnusedStubbingsByLocation()
52 for (Stubbing s : stubbings) { in getUnusedStubbingsByLocation()
64 for (Stubbing s : stubbings) { in getUnusedStubbingsByLocation()
DUnusedStubbings.java11 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()
52 …ns = ListUtil.convert(unused, (ListUtil.Converter) new ListUtil.Converter<Stubbing, Invocation>() { in reportUnused()
53 public Invocation convert(Stubbing s) { in reportUnused()
DDefaultStubbingLookupListener.java12 import org.mockito.stubbing.Stubbing;
55 Collection<Stubbing> stubbings = mockingDetails(invocation.getMock()).getStubbings(); in potentialArgMismatches()
56 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()
DStubbedInvocationMatcher.java9 import org.mockito.stubbing.Stubbing;
19 public class StubbedInvocationMatcher extends InvocationMatcher implements Serializable, Stubbing {
DInvocationContainerImpl.java16 import org.mockito.stubbing.Stubbing;
130 public List<Stubbing> getStubbedInvocations() { in getStubbedInvocations()
/external/mockito/src/main/java/org/mockito/internal/util/
DDefaultMockingDetails.java15 import org.mockito.stubbing.Stubbing;
59 public Collection<Stubbing> getStubbings() { in getStubbings()
60 List<? extends Stubbing> stubbings = getInvocationContainer().getStubbedInvocations(); in getStubbings()
61 TreeSet<Stubbing> out = new TreeSet<Stubbing>(new StubbingComparator()); in getStubbings()
/external/mockito/src/main/java/org/mockito/internal/invocation/
DUnusedStubsFinder.java10 import org.mockito.stubbing.Stubbing;
26 … List<Stubbing> fromSingleMock = MockUtil.getInvocationContainer(mock).getStubbedInvocations(); in find()
27 for(Stubbing s : fromSingleMock) { in find()
/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/src/main/java/org/mockito/
DMockingDetails.java11 import org.mockito.stubbing.Stubbing;
91 Collection<Stubbing> getStubbings(); in getStubbings()
DMockito.java33 import org.mockito.stubbing.Stubbing;
/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.java14 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/stubbing/defaultanswers/
DReturnsDeepStubs.java18 import org.mockito.stubbing.Stubbing;
64 for (Stubbing stubbing : container.getStubbedInvocations()) { in deepStub()
/external/mockito/src/main/java/org/mockito/stubbing/
DStubbing.java22 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()