Home
last modified time | relevance | path

Searched refs:MockSettings (Results 1 – 9 of 9) sorted by relevance

/external/mockito/src/main/java/org/mockito/
DMockSettings.java39 public interface MockSettings extends Serializable { interface
60 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 …]
DMockito.java1704 public static <T> T mock(Class<T> classToMock, MockSettings mockSettings) { in mock()
2710 public static MockSettings withSettings() { in withSettings()
/external/mockito/src/main/java/org/mockito/internal/creation/
DMockSettingsImpl.java7 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 …]
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsDeepStubs.java7 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()
/external/mockito/src/main/java/org/mockito/internal/configuration/
DMockAnnotationProcessor.java8 import org.mockito.MockSettings;
18 MockSettings mockSettings = Mockito.withSettings(); in process()
DSpyAnnotationEngine.java15 import org.mockito.MockSettings;
83 MockSettings settings = withSettings().defaultAnswer(CALLS_REAL_METHODS) in spyNewInstance()
/external/mockito/src/test/java/org/mockito/internal/framework/
DDefaultMockitoFrameworkTest.java6 import org.mockito.MockSettings;
64 MockSettings settings = withSettings().name("my list"); in adds_creation_listener()
/external/mockito/src/main/java/org/mockito/listeners/
DInvocationListener.java7 import org.mockito.MockSettings;
/external/mockito/src/main/java/org/mockito/internal/
DMockitoCore.java28 import org.mockito.MockSettings;
59 public <T> T mock(Class<T> typeToMock, MockSettings settings) { in mock()