HomeSort by relevance Sort by last modified time
    Searched refs:mock1 (Results 1 - 8 of 8) sorted by null

  /external/mockito/src/test/java/org/mockito/internal/junit/
ArgMismatchFinderTest.java 17 @Mock IMethods mock1; field in class:ArgMismatchFinderTest
23 StubbingArgMismatches mismatches = finder.getStubbingArgMismatches((List) asList(mock1, mock2));
32 when(mock1.simpleMethod(1)).thenReturn("1");
36 StubbingArgMismatches mismatches = finder.getStubbingArgMismatches((List) asList(mock1, mock2));
45 when(mock1.simpleMethod(1)).thenReturn("1");
46 mock1.otherMethod();
49 StubbingArgMismatches mismatches = finder.getStubbingArgMismatches((List) asList(mock1, mock2));
58 when(mock1.simpleMethod(1)).thenReturn("1");
59 mock1.simpleMethod(1); // stub used
60 mock1.simpleMethod(2); // no stubbing, but we don't want it to be reported, eithe
    [all...]
  /external/mockito/src/test/java/org/mockitousage/internal/junit/
UnusedStubbingsFinderTest.java 26 @Mock IMethods mock1; field in class:UnusedStubbingsFinderTest
32 assertEquals(0, finder.getUnusedStubbings((List) asList(mock1, mock2)).size());
33 assertEquals(0, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size());
39 mock1.simpleMethod();
42 assertEquals(0, finder.getUnusedStubbings((List) asList(mock1, mock2)).size());
43 assertEquals(0, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size());
49 when(mock1.simpleMethod()).thenReturn("1");
50 mock1.simpleMethod();
53 assertEquals(0, finder.getUnusedStubbings((List) asList(mock1, mock2)).size());
54 assertEquals(0, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size())
    [all...]
  /external/mockito/src/test/java/org/mockito/internal/util/collections/
HashCodeAndEqualsSafeSetTest.java 27 private UnmockableHashCodeAndEquals mock1; field in class:HashCodeAndEqualsSafeSetTest
31 new HashCodeAndEqualsSafeSet().add(mock1);
36 new HashCodeAndEqualsSafeSet().add(mock1);
42 mocks.add(mock1);
44 assertThat(mocks.contains(mock1)).isTrue();
53 UnmockableHashCodeAndEquals mock = mock1;
64 mock1,
77 mock1,
92 mock1,
107 mock1,
    [all...]
  /external/mockito/src/test/java/org/mockitousage/junitrunner/
UnusedStubsExceptionMessageTest.java 23 IMethods mock1 = when(mock(IMethods.class).simpleMethod(1)).thenReturn("1").getMock(); field in class:UnusedStubsExceptionMessageTest.HasUnnecessaryStubs
29 assertEquals("1", mock1.simpleMethod(1));
SilentRunnerTest.java 113 IMethods mock1 = when(mock(IMethods.class).simpleMethod(1)).thenReturn("1").getMock(); field in class:SilentRunnerTest.HasUnnecessaryStubs
119 assertEquals("1", mock1.simpleMethod(1));
  /external/jacoco/org.jacoco.report.test/src/org/jacoco/report/
MultiReportVisitorTest.java 119 IReportVisitor mock1 = new MockVisitor(); local
122 List<IReportVisitor> visitors = Arrays.asList(mock1, mock2, mock3);
125 assertEquals(MOCK_REPORT, mock1.toString());
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
AbstractPreferencesTest.java 430 Preferences mock1 = pref.node("mock1"); local
431 mock1.put("key", "1value");
432 mock1.put("KEY", "2value");
433 mock1.put("/K/E/Y", "7value");
434 mock1.put("/K/E\\Y\\abc~@!#$%^&*(\\", "8value");
436 assertEquals("8value", mock1.get("/K/E\\Y\\abc~@!#$%^&*(\\", null));
437 assertNull(mock1.get("/k/e/y", null));
438 assertEquals("7value", mock1.get("/K/E/Y", null));
439 assertEquals("1value", mock1.get("key", null))
    [all...]
  /prebuilts/tools/common/easymock-tools/
easymock-3.1-tests.jar 

Completed in 811 milliseconds