/external/mockito/src/test/java/org/mockitousage/internal/junit/ |
D | UnusedStubbingsFinderTest.java | 76 UnusedStubbings stubbings = finder.getUnusedStubbings((List) asList(mock1, mock2)); in some_unused_stubbings() local 79 assertEquals(2, stubbings.size()); in some_unused_stubbings() 81 stubbings.toString()); in some_unused_stubbings() 93 Collection stubbings = finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)); in some_unused_stubbings_by_location() local 96 assertEquals(2, stubbings.size()); in some_unused_stubbings_by_location() 97 assertEquals("[mock1.simpleMethod(1);, mock2.simpleMethod(3);]", stubbings.toString()); in some_unused_stubbings_by_location() 122 Collection stubbings = finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)); in deduplicates_stubbings_by_location() local 125 assertEquals(1, stubbings.size()); in deduplicates_stubbings_by_location()
|
/external/mockito/src/main/java/org/mockito/internal/junit/ |
D | UnusedStubbingsFinder.java | 25 Set<Stubbing> stubbings = AllInvocationsFinder.findStubbings(mocks); in getUnusedStubbings() local 27 List<Stubbing> unused = filter(stubbings, new Filter<Stubbing>() { in getUnusedStubbings() 47 Set<Stubbing> stubbings = AllInvocationsFinder.findStubbings(mocks); in getUnusedStubbingsByLocation() local 52 for (Stubbing s : stubbings) { in getUnusedStubbingsByLocation() 64 for (Stubbing s : stubbings) { in getUnusedStubbingsByLocation()
|
D | DefaultStubbingLookupListener.java | 51 Collection<Stubbing> stubbings = mockingDetails(invocation.getMock()).getStubbings(); in potentialArgMismatches() local 52 for (Stubbing s : stubbings) { in potentialArgMismatches()
|
/external/mockito/src/test/java/org/mockito/internal/junit/ |
D | UnusedStubbingsTest.java | 23 UnusedStubbings stubbings = new UnusedStubbings((List) asList()); in no_unused_stubbings() local 26 stubbings.format("MyTest.myTestMethod", logger); in no_unused_stubbings() 35 UnusedStubbings stubbings = new UnusedStubbings((List) asList( in unused_stubbings() local 42 stubbings.format("MyTest.myTestMethod", logger); in unused_stubbings()
|
/external/mockito/src/test/java/org/mockito/internal/ |
D | AllInvocationsFinderTest.java | 82 …List<Stubbing> stubbings = new ArrayList<Stubbing>(findStubbings(asList(mockOne, mockOne, mockTwo)… in provides_stubbings_in_order() local 85 assertEquals(3, stubbings.size()); in provides_stubbings_in_order() 86 assertArgumentEquals(100, stubbings.get(0).getInvocation()); in provides_stubbings_in_order() 87 assertArgumentEquals(200, stubbings.get(1).getInvocation()); in provides_stubbings_in_order() 88 assertArgumentEquals(300, stubbings.get(2).getInvocation()); in provides_stubbings_in_order()
|
/external/mockito/src/main/java/org/mockito/internal/debugging/ |
D | InvocationsPrinter.java | 22 Collection<Stubbing> stubbings = Mockito.mockingDetails(mock).getStubbings(); in printInvocations() local 23 if (invocations.isEmpty() && stubbings.isEmpty()) { in printInvocations() 40 LinkedList<Stubbing> unused = ListUtil.filter(stubbings, new ListUtil.Filter<Stubbing>() { in printInvocations() 52 for(Stubbing s:stubbings) { in printInvocations()
|
/external/mockito/src/main/java/org/mockito/internal/invocation/finder/ |
D | AllInvocationsFinder.java | 43 Set<Stubbing> stubbings = new TreeSet<Stubbing>(new StubbingComparator()); in findStubbings() local 46 stubbings.addAll(fromSingleMock); in findStubbings() 49 return stubbings; in findStubbings()
|
/external/mockito/src/main/java/org/mockito/internal/exceptions/ |
D | Reporter.java | 838 StringBuilder stubbings = new StringBuilder(); in formatUnncessaryStubbingException() local 841 stubbings.append("\n ").append(count++).append(". ").append(u.getLocation()); in formatUnncessaryStubbingException() 850 … "Following stubbings are unnecessary (click to navigate to relevant line of code):" + stubbings, in formatUnncessaryStubbingException() 861 StringBuilder stubbings = new StringBuilder(); in potentialStubbingProblem() local 864 stubbings.append(" ").append(count++).append(". ").append(s); in potentialStubbingProblem() 865 stubbings.append("\n ").append(s.getLocation()).append("\n"); in potentialStubbingProblem() 867 stubbings.deleteCharAt(stubbings.length()-1); //remove trailing end of line in potentialStubbingProblem() 875 stubbings, in potentialStubbingProblem()
|
/external/mockito/src/main/java/org/mockito/internal/util/ |
D | DefaultMockingDetails.java | 56 …List<? extends Stubbing> stubbings = mockHandler().getInvocationContainer().getStubbedInvocations(… in getStubbings() local 58 out.addAll(stubbings); in getStubbings()
|
/external/mockito/src/test/java/org/mockito/internal/util/ |
D | DefaultMockingDetailsTest.java | 150 Collection<Stubbing> stubbings = mockingDetails(mock).getStubbings(); in provides_stubbings_of_mock_in_declaration_order() local 153 assertEquals(2, stubbings.size()); in provides_stubbings_of_mock_in_declaration_order() 154 …tubbed with: [Returns: 1], mock.otherMethod(); stubbed with: [Returns: 2]]", stubbings.toString()); in provides_stubbings_of_mock_in_declaration_order()
|