Home
last modified time | relevance | path

Searched refs:SerializableMode (Results 1 – 18 of 18) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DMockFeatures.java7 import org.mockito.mock.SerializableMode;
16 final SerializableMode serializableMode;
19 …private MockFeatures(Class<T> mockedType, Set<Class<?>> interfaces, SerializableMode serializableM… in MockFeatures()
28 SerializableMode serializableMode, in withMockFeatures()
DTypeCachingBytecodeGenerator.java8 import org.mockito.mock.SerializableMode;
52 private final SerializableMode serializableMode;
57 SerializableMode serializableMode,
DByteBuddyCrossClassLoaderSerializationSupport.java15 import org.mockito.mock.SerializableMode;
276 .setSerializableMode(SerializableMode.ACROSS_CLASSLOADERS)); in resolveClass()
DSubclassBytecodeGenerator.java21 import org.mockito.mock.SerializableMode;
101 if (features.serializableMode == SerializableMode.ACROSS_CLASSLOADERS) { in mockClass()
DInlineBytecodeGenerator.java31 import org.mockito.mock.SerializableMode;
135 || features.serializableMode != SerializableMode.NONE in mockClass()
/external/mockito/src/main/java/org/mockito/internal/creation/settings/
DCreationSettings.java12 import org.mockito.mock.SerializableMode;
31 protected SerializableMode serializableMode = SerializableMode.NONE;
107 return serializableMode != SerializableMode.NONE; in isSerializable()
110 public CreationSettings<T> setSerializableMode(SerializableMode serializableMode) { in setSerializableMode()
116 public SerializableMode getSerializableMode() { in getSerializableMode()
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DTypeCachingMockBytecodeGeneratorTest.java9 import org.mockito.mock.SerializableMode;
43 SerializableMode.NONE, in ensure_cache_is_cleared_if_no_reference_to_classloader_and_classes()
72 SerializableMode.NONE, in ensure_cache_returns_same_instance()
79 SerializableMode.NONE, in ensure_cache_returns_same_instance()
111 SerializableMode.NONE, in ensure_cache_returns_different_instance_serializableMode()
118 SerializableMode.BASIC, in ensure_cache_returns_different_instance_serializableMode()
DAbstractByteBuddyMockMakerTest.java17 import org.mockito.mock.SerializableMode;
96 …ckMaker.createMock(serializableSettingsFor(SerializableClass.class, SerializableMode.BASIC), dummy… in should_allow_serialization()
164 … <T> MockCreationSettings<T> serializableSettingsFor(Class<T> type, SerializableMode serializableM… in serializableSettingsFor()
DInlineByteBuddyMockMakerTest.java20 import org.mockito.mock.SerializableMode;
128 .setSerializableMode(SerializableMode.BASIC); in should_fail_at_creating_a_mock_of_a_final_class_with_explicit_serialization()
/external/mockito/src/main/java/org/mockito/internal/util/
DMockCreationValidator.java15 import org.mockito.mock.SerializableMode;
58 public void validateConstructorUse(boolean usingConstructor, SerializableMode mode) { in validateConstructorUse()
59 if (usingConstructor && mode == SerializableMode.ACROSS_CLASSLOADERS) { in validateConstructorUse()
/external/mockito/src/main/java/org/mockito/
DMockSettings.java14 import org.mockito.mock.SerializableMode;
187 MockSettings serializable(SerializableMode mode); in serializable()
DMockito.java24 import org.mockito.mock.SerializableMode;
/external/mockito/src/test/java/org/mockitousage/serialization/
DAcrossClassLoaderSerializationTest.java11 import org.mockito.mock.SerializableMode;
69 Mockito.withSettings().serializable(SerializableMode.ACROSS_CLASSLOADERS)
/external/mockito/src/main/java/org/mockito/internal/creation/
DMockSettingsImpl.java17 import org.mockito.mock.SerializableMode;
45 return serializable(SerializableMode.BASIC); in serializable()
49 public MockSettings serializable(SerializableMode mode) { in serializable()
/external/mockito/src/main/java/org/mockito/mock/
DSerializableMode.java13 public enum SerializableMode { enum
DMockCreationSettings.java58 SerializableMode getSerializableMode(); in getSerializableMode()
/external/mockito/src/test/java/org/mockitousage/constructor/
DCreatingMocksWithConstructorTest.java10 import org.mockito.mock.SerializableMode;
264 …AbstractMessage.class, withSettings().useConstructor().serializable(SerializableMode.ACROSS_CLASSL… in prevents_across_jvm_serialization_with_constructor()
268 …ls("Mocks instantiated with constructor cannot be combined with " + SerializableMode.ACROSS_CLASSL… in prevents_across_jvm_serialization_with_constructor()
/external/mockito/src/main/java/org/mockito/internal/exceptions/
DReporter.java30 import org.mockito.mock.SerializableMode;
831 public static MockitoException usingConstructorWithFancySerializable(SerializableMode mode) { in usingConstructorWithFancySerializable()