Searched refs:useConstructor (Results 1 – 7 of 7) sorted by relevance
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 …]
37 private boolean useConstructor; field in CreationSettings56 this.useConstructor = copy.isUsingConstructor(); in CreationSettings()136 return useConstructor; in isUsingConstructor()
39 private boolean useConstructor; field in MockSettingsImpl119 public MockSettings useConstructor(Object... constructorArgs) { in useConstructor() method in MockSettingsImpl123 this.useConstructor = true; in useConstructor()142 return useConstructor; in isUsingConstructor()
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()
280 MockSettings useConstructor(Object... args); in useConstructor() method
2025 .useConstructor() in spy()
META-INF/ META-INF/MANIFEST.MF com/ com/db4o/ com/ ...