Searched refs:useConstructor (Results 1 – 6 of 6) sorted by relevance
/external/mockito/src/test/java/org/mockitousage/constructor/ |
D | CreatingMocksWithConstructorTest.java | 47 …Message mock = mock(Message.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METHOD… in can_create_mock_with_constructor() 54 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor().defaultAnswer(C… in can_mock_abstract_classes() 66 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor("hello!").default… in can_spy_abstract_classes_with_constructor_args() 72 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor(7).defaultAnswer(… in can_spy_abstract_classes_with_constructor_primitive_args() 78 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor(new Object[]{null… in can_spy_abstract_classes_with_constructor_array_of_nulls() 84 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor((String) null).de… in can_spy_abstract_classes_with_casted_null() 91 …mock(AbstractMessage.class, withSettings().useConstructor(null).defaultAnswer(CALLS_REAL_METHODS)); in can_spy_abstract_classes_with_null_varargs() 101 …InnerClass mock = mock(InnerClass.class, withSettings().useConstructor().outerInstance(this).defau… in can_mock_inner_classes() 114 …mock(ThrowingConstructorClass.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METH… in explains_constructor_exceptions() 159 …UsesBase u = mock(UsesBase.class, withSettings().useConstructor(new Base()).defaultAnswer(CALLS_RE… in can_mock_unambigous_constructor_with_inheritance_base_class_exact_match() [all …]
|
/external/mockito/src/main/java/org/mockito/internal/creation/settings/ |
D | CreationSettings.java | 37 private boolean useConstructor; field in CreationSettings 56 this.useConstructor = copy.isUsingConstructor(); in CreationSettings() 136 return useConstructor; in isUsingConstructor()
|
/external/mockito/src/main/java/org/mockito/internal/creation/ |
D | MockSettingsImpl.java | 39 private boolean useConstructor; field in MockSettingsImpl 119 public MockSettings useConstructor(Object... constructorArgs) { in useConstructor() method in MockSettingsImpl 123 this.useConstructor = true; in useConstructor() 142 return useConstructor; in isUsingConstructor()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/ |
D | SpyAnnotationEngine.java | 87 return Mockito.mock(type, settings.useConstructor()); in spyNewInstance() 105 return Mockito.mock(type, settings.useConstructor() in spyNewInstance() 114 return Mockito.mock(type, settings.useConstructor()); in spyNewInstance()
|
/external/mockito/src/main/java/org/mockito/ |
D | MockSettings.java | 280 MockSettings useConstructor(Object... args); in useConstructor() method
|
D | Mockito.java | 2025 .useConstructor() in spy()
|