HomeSort by relevance Sort by last modified time
    Searched refs:MockSettings (Results 1 - 14 of 14) sorted by null

  /external/mockito/src/main/java/org/mockito/
MockSettings.java 42 * {@link MockSettings} has been introduced for two reasons.
46 public interface MockSettings extends Serializable {
67 MockSettings extraInterfaces(Class<?>... interfaces);
87 MockSettings name(String name);
129 MockSettings spiedInstance(Object instance);
150 MockSettings defaultAnswer(Answer defaultAnswer);
168 MockSettings serializable();
187 MockSettings serializable(SerializableMode mode);
204 MockSettings verboseLogging();
222 MockSettings invocationListeners(InvocationListener... listeners)
    [all...]
Mockito.java 106 * <a href="#46">46. New <code>Mockito.lenient()</code> and <code>MockSettings.lenient()</code> methods (Since 2.20.0</a><br/>
    [all...]
  /external/mockito/src/main/java/org/mockito/listeners/
InvocationListener.java 7 import org.mockito.MockSettings;
12 * For this to happen, it must be registered using {@link MockSettings#invocationListeners(InvocationListener...)}.
  /external/mockito/src/main/java/org/mockito/invocation/
MockHandler.java 8 import org.mockito.MockSettings;
42 * See {@link org.mockito.Mockito#mock(Class, MockSettings)}
  /external/mockito/src/main/java/org/mockito/internal/creation/
MockSettingsImpl.java 7 import org.mockito.MockSettings;
36 public class MockSettingsImpl<T> extends CreationSettings<T> implements MockSettings, MockCreationSettings<T> {
44 public MockSettings serializable() {
49 public MockSettings serializable(SerializableMode mode) {
55 public MockSettings extraInterfaces(Class<?>... extraInterfaces) {
87 public MockSettings name(String name) {
93 public MockSettings spiedInstance(Object spiedInstance) {
99 public MockSettings defaultAnswer(Answer defaultAnswer) {
119 public MockSettings useConstructor(Object... constructorArgs) {
129 public MockSettings outerInstance(Object outerClassInstance)
    [all...]
  /external/mockito/src/main/java/org/mockito/internal/configuration/
MockAnnotationProcessor.java 8 import org.mockito.MockSettings;
23 MockSettings mockSettings = Mockito.withSettings();
25 mockSettings.extraInterfaces(annotation.extraInterfaces());
28 mockSettings.name(name);
30 mockSettings.name(annotation.name());
33 mockSettings.serializable();
36 mockSettings.stubOnly();
40 mockSettings.defaultAnswer(annotation.answer());
41 return Mockito.mock(type, mockSettings);
    [all...]
SpyAnnotationEngine.java 15 import org.mockito.MockSettings;
83 MockSettings settings = withSettings().defaultAnswer(CALLS_REAL_METHODS)
  /external/mockito/src/main/java/org/mockito/junit/
MockitoRule.java 9 import org.mockito.MockSettings;
125 * In order to tweak strictness per stubbing see {@link Mockito#lenient()}, per mock see {@link MockSettings#lenient()}.
  /external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
ReturnsDeepStubs.java 7 import org.mockito.MockSettings;
102 private MockSettings withSettingsUsing(GenericMetadataSupport returnTypeGenericMetadata, MockCreationSettings parentMockSettings) {
103 MockSettings mockSettings = returnTypeGenericMetadata.hasRawExtraInterfaces() ?
107 return propagateSerializationSettings(mockSettings, parentMockSettings)
111 private MockSettings propagateSerializationSettings(MockSettings mockSettings, MockCreationSettings parentMockSettings) {
112 return mockSettings.serializable(parentMockSettings.getSerializableMode());
125 CreationSettings mockSettings = (CreationSettings) MockUtil.getMockHandler(mock).getMockSettings()
    [all...]
  /external/mockito/src/main/java/org/mockito/mock/
MockCreationSettings.java 9 import org.mockito.MockSettings;
20 * Informs about the mock settings. An immutable view of {@link org.mockito.MockSettings}.
36 * the name of this mock, as printed on verification errors; see {@link org.mockito.MockSettings#name}.
41 * the default answer for this mock, see {@link org.mockito.MockSettings#defaultAnswer}.
51 * if the mock is serializable, see {@link org.mockito.MockSettings#serializable}.
73 * {@link InvocationListener} instances attached to this mock, see {@link org.mockito.MockSettings#invocationListeners}.
79 * see {@link org.mockito.MockSettings#verificationStartedListeners(VerificationStartedListener...)}
117 * For more information about using mocks with lenient strictness, see {@link MockSettings#lenient()}.
  /external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/extended/
StaticMockitoSessionBuilder.java 19 import org.mockito.MockSettings;
35 * {@link #mockStatic(Class, MockSettings)};
80 * Sets up mocking for all static methods of a class with custom {@link MockSettings}.
90 public <T> StaticMockitoSessionBuilder mockStatic(Class<T> clazz, MockSettings settings) {
ExtendedMockito.java 20 import org.mockito.MockSettings;
327 * StaticMockitoSessionBuilder#mockStatic(Class, MockSettings)};
  /external/mockito/src/test/java/org/mockito/internal/framework/
DefaultMockitoFrameworkTest.java 10 import org.mockito.MockSettings;
67 MockSettings settings = withSettings().name("my list");
  /external/mockito/src/main/java/org/mockito/internal/
MockitoCore.java 8 import org.mockito.MockSettings;
63 public <T> T mock(Class<T> typeToMock, MockSettings settings) {

Completed in 1013 milliseconds