Home
last modified time | relevance | path

Searched refs:voidMethod (Results 1 – 14 of 14) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/verification/
DVerificationInOrderWithCallsTest.java90 mockOne.voidMethod(); in shouldFailWhenDifferentMethodCallsAreOutOfSequence()
93 verifier.verify( mockOne, calls(1)).voidMethod(); in shouldFailWhenDifferentMethodCallsAreOutOfSequence()
109 mockOne.voidMethod(); in shouldFailWhenMethodCallsOnDifferentMocksAreOutOfSequence()
110 mockTwo.voidMethod(); in shouldFailWhenMethodCallsOnDifferentMocksAreOutOfSequence()
113 verifier.verify( mockTwo, calls(1)).voidMethod(); in shouldFailWhenMethodCallsOnDifferentMocksAreOutOfSequence()
121 verifier.verify( mockOne, calls(1)).voidMethod(); in shouldFailWhenMethodCallsOnDifferentMocksAreOutOfSequence()
151 mockOne.voidMethod(); in shouldAllowSequentialCallsToCallsForDifferentMethods()
152 mockOne.voidMethod(); in shouldAllowSequentialCallsToCallsForDifferentMethods()
159 verifier.verify( mockOne, calls(2)).voidMethod(); in shouldAllowSequentialCallsToCallsForDifferentMethods()
170 mockOne.voidMethod(); in shouldAllowSequentialCallsToCallsForMethodsOnDifferentMocks()
[all …]
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingConsecutiveAnswersTest.java216 .when(mock).voidMethod(); in should_stub_void_method_and_continue_throwing()
219 mock.voidMethod(); in should_stub_void_method_and_continue_throwing()
223 mock.voidMethod(); in should_stub_void_method_and_continue_throwing()
226 mock.voidMethod(); in should_stub_void_method_and_continue_throwing()
231 mock.voidMethod(); in should_stub_void_method_and_continue_throwing()
242 .voidMethod(); in should_stub_void_method()
244 mock.voidMethod(); in should_stub_void_method()
247 mock.voidMethod(); in should_stub_void_method()
251 mock.voidMethod(); in should_stub_void_method()
252 mock.voidMethod(); in should_stub_void_method()
[all …]
DStubbingWithCustomAnswerTest.java72 doAnswer(recordCall).when(mock).voidMethod(); in shoudAnswerVoidMethod()
74 mock.voidMethod(); in shoudAnswerVoidMethod()
86 .when(mock).voidMethod(); in shouldAnswerVoidMethodConsecutively()
88 mock.voidMethod(); in shouldAnswerVoidMethodConsecutively()
93 mock.voidMethod(); in shouldAnswerVoidMethodConsecutively()
98 mock.voidMethod(); in shouldAnswerVoidMethodConsecutively()
DStubbingUsingDoReturnTest.java57 doThrow(new FooRuntimeException()).when(mock).voidMethod(); in should_stub_with_throwable()
59 mock.voidMethod(); in should_stub_with_throwable()
89 doReturn("foo").when(mock).voidMethod(); in should_scream_when_return_set_for_void()
178 .when(mock).voidMethod(); in should_allow_chained_stubbing_on_void_methods()
180 mock.voidMethod(); in should_allow_chained_stubbing_on_void_methods()
181 mock.voidMethod(); in should_allow_chained_stubbing_on_void_methods()
183 mock.voidMethod(); in should_allow_chained_stubbing_on_void_methods()
187 mock.voidMethod(); in should_allow_chained_stubbing_on_void_methods()
/external/mockito/src/test/java/org/mockitousage/customization/
DBDDMockitoTest.java129 willThrow(new SomethingWasWrong()).given(mock).voidMethod(); in should_stub_void()
132 mock.voidMethod(); in should_stub_void()
140 willThrow(SomethingWasWrong.class).given(mock).voidMethod(); in should_stub_void_with_exception_class()
143 mock.voidMethod(); in should_stub_void_with_exception_class()
152 willThrow(SomethingWasWrong.class, AnotherThingWasWrong.class).given(mock).voidMethod(); in should_stub_void_with_exception_classes()
155 mock.voidMethod(); in should_stub_void_with_exception_classes()
165 .given(mock).voidMethod(); in should_stub_void_consecutively()
167 mock.voidMethod(); in should_stub_void_consecutively()
169 mock.voidMethod(); in should_stub_void_consecutively()
179 .given(mock).voidMethod(); in should_stub_void_consecutively_with_exception_class()
[all …]
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DInvocationInfoTest.java82 mock(IMethods.class).voidMethod(); in isVoid_invocationOnVoidMethod_returnTrue()
84 InvocationInfo voidMethod = new InvocationInfo(getLastInvocation()); in isVoid_invocationOnVoidMethod_returnTrue() local
86 assertThat(voidMethod.isVoid()).isTrue(); in isVoid_invocationOnVoidMethod_returnTrue()
DDoesNothingTest.java29 mock.voidMethod(); in init()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/
DMethodExitWithReturnValueDebuggee.java96 public void voidMethod() { in voidMethod() method in MethodExitWithReturnValueDebuggee
129 voidMethod(); in run()
/external/mockito/src/test/java/org/mockitousage/serialization/
DParallelSerializationTest.java76 case 6 : iMethods.voidMethod(); break; in randomCallOn()
/external/mockito/src/test/java/org/mockitousage/
DIMethods.java189 void voidMethod(); in voidMethod() method
DMethodsImpl.java358 public void voidMethod() { in voidMethod() method in MethodsImpl
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DOptionalMethodTest.java41 public void voidMethod() {} in voidMethod() method in OptionalMethodTest.BaseClass
/external/guava/guava-testlib/test/com/google/common/testing/
DClassSanityTesterTest.java73 public void voidMethod() { in voidMethod() method in ClassSanityTesterTest.GoodEqualsFactory
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DDexMakerTest.java319 MethodId<?, Void> voidMethod = TEST_TYPE.getMethod(TypeId.VOID, "voidMethod"); in testInvokeVoidMethodIgnoresTargetLocal() local
323 code.invokeStatic(voidMethod, null); in testInvokeVoidMethodIgnoresTargetLocal()
330 public static void voidMethod() {} in voidMethod() method in DexMakerTest