Searched refs:MockSettings (Results 1 – 14 of 14) sorted by relevance
46 public interface MockSettings extends Serializable { interface67 MockSettings extraInterfaces(Class<?>... interfaces); in extraInterfaces()87 MockSettings name(String name); in name()129 MockSettings spiedInstance(Object instance); in spiedInstance()150 MockSettings defaultAnswer(Answer defaultAnswer); in defaultAnswer()168 MockSettings serializable(); in serializable()187 MockSettings serializable(SerializableMode mode); in serializable()204 MockSettings verboseLogging(); in verboseLogging()222 MockSettings invocationListeners(InvocationListener... listeners); in invocationListeners()239 MockSettings verificationStartedListeners(VerificationStartedListener... listeners); in verificationStartedListeners()[all …]
1904 public static <T> T mock(Class<T> classToMock, MockSettings mockSettings) { in mock()2954 public static MockSettings withSettings() { in withSettings()
7 import org.mockito.MockSettings;36 public class MockSettingsImpl<T> extends CreationSettings<T> implements MockSettings, MockCreationS…44 public MockSettings serializable() { in serializable()49 public MockSettings serializable(SerializableMode mode) { in serializable()55 public MockSettings extraInterfaces(Class<?>... extraInterfaces) { in extraInterfaces()87 public MockSettings name(String name) { in name()93 public MockSettings spiedInstance(Object spiedInstance) { in spiedInstance()99 public MockSettings defaultAnswer(Answer defaultAnswer) { in defaultAnswer()119 public MockSettings useConstructor(Object... constructorArgs) { in useConstructor()129 public MockSettings outerInstance(Object outerClassInstance) { in outerInstance()[all …]
7 import org.mockito.MockSettings;102 …private MockSettings withSettingsUsing(GenericMetadataSupport returnTypeGenericMetadata, MockCreat… in withSettingsUsing()103 MockSettings mockSettings = returnTypeGenericMetadata.hasRawExtraInterfaces() ? in withSettingsUsing()111 …private MockSettings propagateSerializationSettings(MockSettings mockSettings, MockCreationSetting… in propagateSerializationSettings()
8 import org.mockito.MockSettings;23 MockSettings mockSettings = Mockito.withSettings(); in processAnnotationForMock()
15 import org.mockito.MockSettings;83 MockSettings settings = withSettings().defaultAnswer(CALLS_REAL_METHODS) in spyNewInstance()
19 import org.mockito.MockSettings;90 public <T> StaticMockitoSessionBuilder mockStatic(Class<T> clazz, MockSettings settings) { in mockStatic()
20 import org.mockito.MockSettings;
7 import org.mockito.MockSettings;
10 import org.mockito.MockSettings;78 MockSettings settings = withSettings().name("my list"); in adds_creation_listener()
8 import org.mockito.MockSettings;
9 import org.mockito.MockSettings;
8 import org.mockito.MockSettings;63 public <T> T mock(Class<T> typeToMock, MockSettings settings) { in mock()