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
26
when(methods.
simpleMethod
()).thenReturn("return");
28
methods.
simpleMethod
();
29
verify(methods).
simpleMethod
();
34
assertEquals("return", methods.
simpleMethod
());
39
methods.
simpleMethod
();
40
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
48
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
38
when(mock.
simpleMethod
());
48
Mockito.when(mock.
simpleMethod
()); // <--- unfinished stubbing
/external/mockito/src/test/java/org/mockitousage/bugs/
NPEWhenCustomExceptionStackTraceReturnNullTest.java
30
when(mock.
simpleMethod
()).thenThrow(new NullStackTraceException());
32
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
47
when(mock.
simpleMethod
()).thenReturn("");
50
when(mock.
simpleMethod
()).thenReturn("");
53
when(mock.
simpleMethod
()).thenReturn("");
54
mock.
simpleMethod
();
63
when(mock.
simpleMethod
()).thenReturn("");
64
mock.
simpleMethod
();
67
when(mock.
simpleMethod
(10)).thenReturn("");
68
mock.
simpleMethod
(20);
StubbingWarningsJUnitRunnerTest.java
68
when(mock.
simpleMethod
(1)).thenReturn("1");
69
mock.
simpleMethod
(2);
77
when(mock.
simpleMethod
(1)).thenReturn("1");
78
mock.
simpleMethod
(2);
87
when(mock.
simpleMethod
(1)).thenReturn("1");
88
mock.
simpleMethod
(1);
97
when(mock.
simpleMethod
(1)).thenReturn("1"); // <- used
98
when(mock.
simpleMethod
(2)).thenReturn("2"); // <- unused
100
mock.
simpleMethod
(1); // <- not reported
101
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
43
mock1.
simpleMethod
();
53
when(mock1.
simpleMethod
()).thenReturn("1");
54
mock1.
simpleMethod
();
64
when(mock1.
simpleMethod
()).thenReturn("1");
73
when(mock1.
simpleMethod
(1)).thenReturn("1");
74
when(mock2.
simpleMethod
(2)).thenReturn("2");
75
when(mock2.
simpleMethod
(3)).thenReturn("3");
77
mock2.
simpleMethod
(2);
84
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/invocation/
InvocationBuilder.java
28
private String methodName = "
simpleMethod
";
115
public InvocationBuilder
simpleMethod
() {
116
return this.method("
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
35
mock.
simpleMethod
();
36
verify(mock).
simpleMethod
();
40
given(mock.
simpleMethod
(10)).willReturn("foo");
41
mock.
simpleMethod
(10);
45
given(mock.
simpleMethod
(10)).willReturn("foo");
46
mock.
simpleMethod
(10);
47
mock.
simpleMethod
(15);
55
given(mock.
simpleMethod
(10)).willReturn("foo");
56
mock2.
simpleMethod
(10);
64
given(mock.
simpleMethod
(10)).willReturn("foo")
[
all
...]
VerificationCollectorImplTest.java
27
methods.
simpleMethod
();
29
verify(methods).
simpleMethod
();
39
verify(methods).
simpleMethod
();
49
verify(methods).
simpleMethod
();
66
verify(methods, never()).
simpleMethod
();
77
methods.
simpleMethod
();
80
verify(methods).
simpleMethod
();
114
verify(methods).
simpleMethod
();
120
methods.
simpleMethod
();
122
verify(methods).
simpleMethod
();
[
all
...]
Completed in 544 milliseconds
1
2