Home
last modified time | relevance | path

Searched refs:InjectMocks (Results 1 – 25 of 27) sorted by relevance

12

/external/mockito/src/test/java/org/mockitousage/annotation/
DMockInjectionUsingSetterOrPropertyTest.java10 import org.mockito.InjectMocks;
30 @InjectMocks private SuperUnderTesting superUnderTest = new SuperUnderTesting();
31 @InjectMocks private BaseUnderTesting baseUnderTest = new BaseUnderTesting();
32 @InjectMocks private SubUnderTesting subUnderTest = new SubUnderTesting();
33 @InjectMocks private OtherBaseUnderTesting otherBaseUnderTest = new OtherBaseUnderTesting();
34 …@InjectMocks private HasTwoFieldsWithSameType hasTwoFieldsWithSameType = new HasTwoFieldsWithSameT…
37 @InjectMocks private BaseUnderTesting initializedBase = baseUnderTestingInstance;
38 @InjectMocks private BaseUnderTesting notInitializedBase;
40 @Spy @InjectMocks private SuperUnderTesting initializedSpy = new SuperUnderTesting();
41 @Spy @InjectMocks private SuperUnderTesting notInitializedSpy;
[all …]
DMockInjectionUsingConstructorTest.java16 import org.mockito.InjectMocks;
43 @InjectMocks private ArticleManager articleManager;
44 @Spy @InjectMocks private ArticleManager spiedArticleManager;
108 @InjectMocks some_class_with_parametered_constructor should_be_initialized_3_times;
130 @InjectMocks FailingConstructor failingConstructor;
137 @InjectMocks in injectMocksMustFailWithInterface()
151 @InjectMocks in injectMocksMustFailWithEnum()
164 @InjectMocks in injectMocksMustFailWithAbstractClass()
178 @InjectMocks in injectMocksMustFailWithNonStaticInnerClass()
193 @InjectMocks in injectMocksMustSucceedWithStaticInnerClass()
[all …]
DWrongSetOfAnnotationsTest.java29 MockitoAnnotations.initMocks(new Object() { @InjectMocks @Spy List<?> mock; }); in should_not_allow_Spy_and_InjectMocks_on_interfaces()
39 @InjectMocks in should_allow_Spy_and_InjectMocks()
49 @InjectMocks @Mock List<?> mock; in should_not_allow_Mock_and_InjectMocks()
70 @InjectMocks @Captor ArgumentCaptor<?> captor; in should_not_allow_Captor_and_InjectMocks()
DInjectionOfInlinedMockDeclarationTest.java9 import org.mockito.InjectMocks;
20 @InjectMocks private Receiver receiver;
21 @InjectMocks private Receiver spiedReceiver = spy(new Receiver());
DSpyInjectionTest.java8 import org.mockito.InjectMocks;
19 @InjectMocks HasSpy hasSpy = new HasSpy();
DMockInjectionUsingConstructorIssue421Test.java10 import org.mockito.InjectMocks;
23 @InjectMocks private Issue421 issue421;
DDeprecatedAnnotationEngineApiTest.java10 import org.mockito.InjectMocks;
29 @InjectMocks Tested tested = new Tested();
/external/mockito/src/test/java/org/mockitousage/bugs/injection/
DInjectionByTypeShouldFirstLookForExactTypeThenAncestorTest.java9 import org.mockito.InjectMocks;
24 @InjectMocks private Service illegalInjectionExample = new Service();
25 …@InjectMocks private ServiceWithReversedOrder reversedOrderService = new ServiceWithReversedOrder(…
26 @InjectMocks private WithNullObjectField withNullObjectField = new WithNullObjectField();
DChildWithSameParentFieldInjectionTest.java9 import org.mockito.InjectMocks;
18 @InjectMocks
DInjectMocksShouldTryPropertySettersFirstBeforeFieldAccessTest.java9 import org.mockito.InjectMocks;
25 @InjectMocks BeanAwaitingInjection awaitingInjection;
DShouldNotTryToInjectInFinalOrStaticFieldsTest.java10 import org.mockito.InjectMocks;
31 @InjectMocks private ExampleService exampleService = new ExampleService();
DIssue353InjectionMightNotHappenInCertainConfigurationTest.java6 import org.mockito.InjectMocks;
20 @InjectMocks FooService fooService;
DParentTestMockInjectionTest.java10 import org.mockito.InjectMocks;
37 @InjectMocks private TestedSystem sut = new TestedSystem();
/external/mockito/src/test/java/org/mockitousage/bugs/
DFinalHashCodeAndEqualsRaiseNPEInInitMocksTest.java8 import org.mockito.InjectMocks;
17 @InjectMocks private FieldCharsetHolder fieldCharsetHolder;
18 @InjectMocks private ConstructorCharsetHolder constructorCharsetHolder;
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/scanner/
DInjectMocksScanner.java8 import org.mockito.InjectMocks;
53 if (null != field.getAnnotation(InjectMocks.class)) { in scan()
65 …throw unsupportedCombinationOfAnnotations(annotation.getSimpleName(), InjectMocks.class.getSimpleN… in assertNoAnnotations()
/external/mockito/src/test/java/org/mockitousage/junitrule/
DInvalidTargetMockitoJUnitRuleTest.java5 import org.mockito.InjectMocks;
20 @InjectMocks
DRuleTestWithParameterConstructorTest.java5 import org.mockito.InjectMocks;
21 @InjectMocks
DRuleTestWithFactoryMethodTest.java5 import org.mockito.InjectMocks;
21 @InjectMocks
DMockitoJUnitRuleTest.java5 import org.mockito.InjectMocks;
21 @InjectMocks
/external/mockito/src/test/java/org/mockitousage/junitrunner/
DJUnit45RunnerTest.java9 import org.mockito.InjectMocks;
22 @InjectMocks private ListDependent listDependent = new ListDependent();
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DByteBuddyMockMakerTest.java4 import org.mockito.InjectMocks;
14 @InjectMocks
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DFieldInitializerTest.java8 import org.mockito.InjectMocks;
124 @InjectMocks LocalType field; in should_fail_for_local_type_field()
139 @InjectMocks LocalType field = new LocalType(); in should_not_fail_if_local_type_field_is_instantiated()
/external/mockito/src/test/java/org/mockitousage/examples/use/
DExampleTest.java11 import org.mockito.InjectMocks;
27 @InjectMocks private ArticleManager articleManager;
/external/mockito/src/test/java/org/mockito/internal/configuration/plugins/
DPluginFinderTest.java6 import org.mockito.InjectMocks;
26 @InjectMocks PluginFinder finder;
/external/mockito/src/main/java/org/mockito/internal/configuration/
DSpyAnnotationEngine.java13 import org.mockito.InjectMocks;
52 … if (field.isAnnotationPresent(Spy.class) && !field.isAnnotationPresent(InjectMocks.class)) { in process()

12