Home
last modified time | relevance | path

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

12

/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.java244 .when(mock).voidMethod(); in should_stub_void_method_and_continue_throwing()
247 mock.voidMethod(); in should_stub_void_method_and_continue_throwing()
251 mock.voidMethod(); in should_stub_void_method_and_continue_throwing()
254 mock.voidMethod(); in should_stub_void_method_and_continue_throwing()
259 mock.voidMethod(); in should_stub_void_method_and_continue_throwing()
270 .voidMethod(); in should_stub_void_method()
272 mock.voidMethod(); in should_stub_void_method()
275 mock.voidMethod(); in should_stub_void_method()
279 mock.voidMethod(); in should_stub_void_method()
280 mock.voidMethod(); in should_stub_void_method()
[all …]
DStubbingWithCustomAnswerTest.java72 doAnswer(recordCall).when(mock).voidMethod(); in shouldAnswerVoidMethod()
74 mock.voidMethod(); in shouldAnswerVoidMethod()
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.java78 mock(IMethods.class).voidMethod(); in isVoid_invocationOnVoidMethod_returnTrue()
80 InvocationInfo voidMethod = new InvocationInfo(getLastInvocation()); in isVoid_invocationOnVoidMethod_returnTrue() local
82 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/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DGrpcUtilTest.java247 .newStream(TestMethodDescriptors.voidMethod(), new Metadata(), CallOptions.DEFAULT); in getTransportFromPickResult_errorPickResult_failFast()
263 .newStream(TestMethodDescriptors.voidMethod(), new Metadata(), CallOptions.DEFAULT); in getTransportFromPickResult_dropPickResult_waitForReady()
279 .newStream(TestMethodDescriptors.voidMethod(), new Metadata(), CallOptions.DEFAULT); in getTransportFromPickResult_dropPickResult_failFast()
DHedgingPolicyTest.java67 MethodDescriptor.Builder<Void, Void> builder = TestMethodDescriptors.voidMethod().toBuilder(); in getHedgingPolicies()
139 MethodDescriptor.Builder<Void, Void> builder = TestMethodDescriptors.voidMethod().toBuilder(); in getRetryPolicies_hedgingDisabled()
DRetryPolicyTest.java70 MethodDescriptor.Builder<Void, Void> builder = TestMethodDescriptors.voidMethod().toBuilder(); in getRetryPolicies()
148 MethodDescriptor.Builder<Void, Void> builder = TestMethodDescriptors.voidMethod().toBuilder(); in getRetryPolicies_retryDisabled()
DFailingClientTransportTest.java45 .newStream(TestMethodDescriptors.voidMethod(), new Metadata(), CallOptions.DEFAULT); in newStreamStart()
DForwardingManagedChannelTest.java91 MethodDescriptor<Void, Void> method = TestMethodDescriptors.voidMethod(); in newCall()
/external/grpc-grpc-java/testing/src/main/java/io/grpc/testing/
DTestMethodDescriptors.java42 public static MethodDescriptor<Void, Void> voidMethod() { in voidMethod() method in TestMethodDescriptors
/external/mockito/src/test/java/org/mockitousage/serialization/
DParallelSerializationTest.java76 case 6 : iMethods.voidMethod(); break; in randomCallOn()
/external/grpc-grpc-java/cronet/src/test/java/io/grpc/cronet/
DCronetChannelBuilderTest.java48 private MethodDescriptor<?, ?> method = TestMethodDescriptors.voidMethod();
DCronetClientTransportTest.java58 private MethodDescriptor<Void, Void> descriptor = TestMethodDescriptors.voidMethod();
DCronetClientStreamTest.java82 private MethodDescriptor<?, ?> method = TestMethodDescriptors.voidMethod();
/external/grpc-grpc-java/core/src/test/java/io/grpc/util/
DUtilServerInterceptorsTest.java49 private MethodDescriptor<Void, Void> flowMethod = TestMethodDescriptors.voidMethod();
/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/grpc-grpc-java/core/src/test/java/io/grpc/
DClientInterceptorsTest.java61 private final MethodDescriptor<Void, Void> method = TestMethodDescriptors.voidMethod();
/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.java331 MethodId<?, Void> voidMethod = TEST_TYPE.getMethod(TypeId.VOID, "voidMethod"); in testInvokeVoidMethodIgnoresTargetLocal() local
335 code.invokeStatic(voidMethod, null); in testInvokeVoidMethodIgnoresTargetLocal()
342 public static void voidMethod() {} in voidMethod() method in DexMakerTest

12