Home
last modified time | relevance | path

Searched refs:serializeAndBack (Results 1 – 6 of 6) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/basicapi/
DMocksSerializationTest.java43 serializeAndBack(mock); in should_allow_throws_exception_to_be_serializable()
54 serializeAndBack(barMock); in should_allow_method_delegation()
63 serializeAndBack(mock); in should_allow_mock_to_be_serializable()
192 foo = serializeAndBack(foo); in should_serialization_work()
328 mock = serializeAndBack(mock); in should_serialize_already_serializable_class()
341 Assertions.assertThat((Object) serializeAndBack((List) mock)) in should_be_serialize_and_have_extra_interfaces()
344 Assertions.assertThat((Object) serializeAndBack((List) mockTwo)) in should_be_serialize_and_have_extra_interfaces()
355 serializeAndBack(mock(SerializableAndNoDefaultConstructor.class)); in should_be_able_to_serialize_type_that_implements_Serializable_but_but_dont_declare_a_no_arg_constructor()
375 SimpleSerializationUtil.serializeAndBack(mockWithPrivateConstructor); in private_constructor_currently_not_supported_at_the_moment_at_deserialization_time()
392 serializeAndBack(iMethods); in BUG_ISSUE_399_try_some_mocks_with_current_answers()
DMocksSerializationForAnnotationTest.java49 serializeAndBack(barMock); in should_allow_throws_exception_to_be_serializable()
55 serializeAndBack(imethodsMock); in should_allow_mock_to_be_serializable()
176 foo = serializeAndBack(foo); in should_serialization_work()
301 alreadySerializableMock = serializeAndBack(alreadySerializableMock); in should_serialize_already_serializable_class()
310 Assertions.assertThat((Object) serializeAndBack((List) imethodsWithExtraInterfacesMock)) in should_be_serialize_and_have_extra_interfaces()
333 serializeAndBack(testClass.serializableAndNoDefaultConstructor); in should_be_able_to_serialize_type_that_implements_Serializable_but_but_dont_declare_a_no_arg_constructor()
DObjectsSerializationTest.java14 import static org.mockitoutil.SimpleSerializationUtil.serializeAndBack;
42 foo = serializeAndBack(foo); in shouldSerializationWork()
/external/mockito/src/test/java/org/mockitousage/serialization/
DDeepStubsSerializableTest.java15 import static org.mockitoutil.SimpleSerializationUtil.serializeAndBack;
27 SampleClass deserializedSample = serializeAndBack(sampleClass); in should_serialize_and_deserialize_mock_created_with_deep_stubs()
41 ListContainer deserialized_deep_stub = serializeAndBack(deep_stubbed); in should_serialize_and_deserialize_parameterized_class_mocked_with_deep_stubs()
54 ListContainer deserialized_deep_stub = serializeAndBack(deep_stubbed); in should_discard_generics_metadata_when_serialized_then_disabling_deep_stubs_with_generics()
/external/mockito/src/test/java/org/mockitoutil/
DSimpleSerializationUtil.java15 public static <T> T serializeAndBack(T obj) throws Exception { in serializeAndBack() method in SimpleSerializationUtil
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DAbstractByteBuddyMockMakerTest.java98 SerializableClass serialized = SimpleSerializationUtil.serializeAndBack(proxy); in should_allow_serialization()