OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:simpleMethod
(Results
1 - 25
of
43
) sorted by null
1
2
/external/mockito/src/test/java/org/mockitousage/basicapi/
ResetInvocationsTest.java
22
when(methods.
simpleMethod
()).thenReturn("return");
24
methods.
simpleMethod
();
25
verify(methods).
simpleMethod
();
30
assertEquals("return", methods.
simpleMethod
());
35
methods.
simpleMethod
();
36
moarMethods.
simpleMethod
();
ResetTest.java
60
mock.
simpleMethod
(1);
75
when(mock.
simpleMethod
("one")).thenThrow(new RuntimeException());
76
doThrow(new RuntimeException()).when(mock).
simpleMethod
("two");
92
mock.
simpleMethod
();
93
mockTwo.
simpleMethod
();
MocksCreationTest.java
52
smartNull.
simpleMethod
();
/external/mockito/src/test/java/org/mockito/internal/verification/
DefaultRegisteredInvocationsTest.java
29
Invocation
simpleMethod
= new InvocationBuilder().
simpleMethod
().toInvocation();
32
invocations.add(
simpleMethod
);
34
assertTrue(invocations.getAll().contains(
simpleMethod
));
/external/mockito/src/test/java/org/mockitousage/verification/
FindingRedundantInvocationsInOrderTest.java
38
mock.
simpleMethod
();
53
mock.
simpleMethod
();
54
mock.
simpleMethod
(10);
59
inOrder.verify(mock).
simpleMethod
(10);
67
mock.
simpleMethod
();
68
mock2.
simpleMethod
();
73
inOrder.verify(mock2).
simpleMethod
();
81
mock.
simpleMethod
();
82
mock.
simpleMethod
(10);
87
inOrder.verify(mock).
simpleMethod
(10)
[
all
...]
OrdinaryVerificationPrintsAllInteractionsTest.java
32
verify(mock).
simpleMethod
();
49
verify(mock).
simpleMethod
();
59
verify(mock).
simpleMethod
();
67
mockTwo.
simpleMethod
();
VerificationExcludingStubsTest.java
27
when(mock.
simpleMethod
()).thenReturn("foo");
30
String stubbed = mock.
simpleMethod
(); //irrelevant call because it is stubbing
47
when(mock.
simpleMethod
()).thenReturn("foo");
52
mock.
simpleMethod
(); //calling the stub
VerificationInOrderTest.java
41
mockOne.
simpleMethod
(1);
42
mockOne.
simpleMethod
(2);
44
verify(mockOne).
simpleMethod
(2);
45
verify(mockOne).
simpleMethod
(1);
47
inOrder.verify(mockOne).
simpleMethod
(2);
49
inOrder.verify(mockOne).
simpleMethod
(1);
57
mockOne.
simpleMethod
();
69
mockOne.
simpleMethod
();
70
mockOne.
simpleMethod
();
72
mockOne.
simpleMethod
();
[
all
...]
/external/mockito/src/test/java/org/concurrentmockito/
ThreadVerifiesContinuoslyInteractingMockTest.java
29
mock.
simpleMethod
();
41
mock.
simpleMethod
();
47
verify(mock, atLeastOnce()).
simpleMethod
();
/external/mockito/src/test/java/org/mockito/internal/junit/
JUnitRuleTest.java
34
when(mock.
simpleMethod
());
44
Mockito.when(mock.
simpleMethod
()); // <--- unfinished stubbing
/external/mockito/src/test/java/org/mockitousage/bugs/
NPEWhenCustomExceptionStackTraceReturnNullTest.java
26
when(mock.
simpleMethod
()).thenThrow(new NullStackTraceException());
28
mock.
simpleMethod
();
NPEWhenMockingThrowablesTest.java
28
when(mock.
simpleMethod
()).thenThrow(mock2);
30
mock.
simpleMethod
();
/external/mockito/src/test/java/org/mockitousage/junitrunner/
ModellingVerboseMockitoTest.java
35
when(mock.
simpleMethod
(1)).thenReturn("foo");
40
String ret = mock.
simpleMethod
(2);
49
when(mock.
simpleMethod
()).thenReturn("foo");
51
mock.
simpleMethod
();
53
verify(mock).
simpleMethod
();
StrictStubsRunnerTest.java
44
when(mock.
simpleMethod
()).thenReturn("");
47
when(mock.
simpleMethod
()).thenReturn("");
50
when(mock.
simpleMethod
()).thenReturn("");
51
mock.
simpleMethod
();
60
when(mock.
simpleMethod
()).thenReturn("");
61
mock.
simpleMethod
();
64
when(mock.
simpleMethod
(10)).thenReturn("");
65
mock.
simpleMethod
(20);
StubbingWarningsJUnitRunnerTest.java
64
when(mock.
simpleMethod
(1)).thenReturn("1");
65
mock.
simpleMethod
(2);
73
when(mock.
simpleMethod
(1)).thenReturn("1");
74
mock.
simpleMethod
(2);
83
when(mock.
simpleMethod
(1)).thenReturn("1");
84
mock.
simpleMethod
(1);
93
when(mock.
simpleMethod
(1)).thenReturn("1"); // <- used
94
when(mock.
simpleMethod
(2)).thenReturn("2"); // <- unused
96
mock.
simpleMethod
(1); // <- not reported
97
mock.
simpleMethod
(3); // <- reporte
[
all
...]
/external/mockito/src/test/java/org/mockitousage/matchers/
CustomMatcherDoesYieldCCETest.java
25
mock.
simpleMethod
(new Object());
30
verify(mock).
simpleMethod
(argThat(isStringWithTextFoo()));
MoreMatchersTest.java
34
mock.
simpleMethod
((Object) null);
36
verify(mock).
simpleMethod
(any());
37
verify(mock).
simpleMethod
(anyObject());
42
mock.
simpleMethod
(new ArrayList());
44
verify(mock).
simpleMethod
(isA(List.class));
45
verify(mock).
simpleMethod
(any(List.class));
48
mock.
simpleMethod
((String) null);
50
verify(mock).
simpleMethod
(isA(String.class));
54
verify(mock).
simpleMethod
(any(String.class));
/external/mockito/src/test/java/org/mockitousage/misuse/
ExplicitFrameworkValidationTest.java
37
when(mock.
simpleMethod
());
/external/mockito/src/test/java/org/mockitousage/internal/junit/
UnusedStubbingsFinderTest.java
39
mock1.
simpleMethod
();
49
when(mock1.
simpleMethod
()).thenReturn("1");
50
mock1.
simpleMethod
();
60
when(mock1.
simpleMethod
()).thenReturn("1");
69
when(mock1.
simpleMethod
(1)).thenReturn("1");
70
when(mock2.
simpleMethod
(2)).thenReturn("2");
71
when(mock2.
simpleMethod
(3)).thenReturn("3");
73
mock2.
simpleMethod
(2);
80
assertEquals("[mock1.
simpleMethod
(1); stubbed with: [Returns: 1], mock2.
simpleMethod
(3); stubbed with: [Returns: 3]]"
[
all
...]
/external/mockito/src/test/java/org/mockitousage/stacktrace/
ClickableStackTracesWhenFrameworkMisusedTest.java
38
verify(mock).
simpleMethod
();
48
when(mock.
simpleMethod
());
56
verify(mock).
simpleMethod
();
StackTraceFilteringTest.java
46
verify(mock).
simpleMethod
();
134
when(mock.
simpleMethod
()).thenThrow(new RuntimeException());
137
mock.
simpleMethod
();
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DoesNothingTest.java
35
mock.
simpleMethod
();
/external/mockito/src/test/java/org/mockitousage/junitrule/
StrictJUnitRuleTest.java
29
mock.
simpleMethod
();
30
verify(mock).
simpleMethod
();
34
given(mock.
simpleMethod
(10)).willReturn("foo");
35
mock.
simpleMethod
(10);
39
given(mock.
simpleMethod
(10)).willReturn("foo");
40
mock.
simpleMethod
(10);
41
mock.
simpleMethod
(15);
49
given(mock.
simpleMethod
(10)).willReturn("foo");
50
mock2.
simpleMethod
(10);
58
given(mock.
simpleMethod
(10)).willReturn("foo")
[
all
...]
VerificationCollectorImplTest.java
23
methods.
simpleMethod
();
25
verify(methods).
simpleMethod
();
35
verify(methods).
simpleMethod
();
45
verify(methods).
simpleMethod
();
62
verify(methods, never()).
simpleMethod
();
73
methods.
simpleMethod
();
76
verify(methods).
simpleMethod
();
110
verify(methods).
simpleMethod
();
116
methods.
simpleMethod
();
118
verify(methods).
simpleMethod
();
[
all
...]
/external/mockito/src/test/java/org/mockitousage/session/
MockitoSessionTest.java
120
when(mock.
simpleMethod
());
134
when(mock.
simpleMethod
());
Completed in 1275 milliseconds
1
2