Searched refs:MockSettings (Results 1 – 9 of 9) sorted by relevance
39 public interface MockSettings extends Serializable { interface60 MockSettings extraInterfaces(Class<?>... interfaces); in extraInterfaces()80 MockSettings name(String name); in name()122 MockSettings spiedInstance(Object instance); in spiedInstance()143 MockSettings defaultAnswer(Answer defaultAnswer); in defaultAnswer()161 MockSettings serializable(); in serializable()180 MockSettings serializable(SerializableMode mode); in serializable()197 MockSettings verboseLogging(); in verboseLogging()217 MockSettings invocationListeners(InvocationListener... listeners); in invocationListeners()231 MockSettings stubOnly(); in stubOnly()[all …]
1704 public static <T> T mock(Class<T> classToMock, MockSettings mockSettings) { in mock()2710 public static MockSettings withSettings() { in withSettings()
7 import org.mockito.MockSettings;28 public class MockSettingsImpl<T> extends CreationSettings<T> implements MockSettings, MockCreationS…34 public MockSettings serializable() { in serializable()38 public MockSettings serializable(SerializableMode mode) { in serializable()43 public MockSettings extraInterfaces(Class<?>... extraInterfaces) { in extraInterfaces()71 public MockSettings name(String name) { in name()76 public MockSettings spiedInstance(Object spiedInstance) { in spiedInstance()81 public MockSettings defaultAnswer(Answer defaultAnswer) { in defaultAnswer()98 public MockSettings useConstructor() { in useConstructor()103 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;18 MockSettings mockSettings = Mockito.withSettings(); in process()
15 import org.mockito.MockSettings;83 MockSettings settings = withSettings().defaultAnswer(CALLS_REAL_METHODS) in spyNewInstance()
6 import org.mockito.MockSettings;64 MockSettings settings = withSettings().name("my list"); in adds_creation_listener()
7 import org.mockito.MockSettings;
28 import org.mockito.MockSettings;59 public <T> T mock(Class<T> typeToMock, MockSettings settings) { in mock()