Searched refs:InjectMocks (Results 1 – 25 of 27) sorted by relevance
12
10 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 …]
16 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 …]
29 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()
9 import org.mockito.InjectMocks;20 @InjectMocks private Receiver receiver;21 @InjectMocks private Receiver spiedReceiver = spy(new Receiver());
8 import org.mockito.InjectMocks;19 @InjectMocks HasSpy hasSpy = new HasSpy();
10 import org.mockito.InjectMocks;23 @InjectMocks private Issue421 issue421;
10 import org.mockito.InjectMocks;29 @InjectMocks Tested tested = new Tested();
9 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();
9 import org.mockito.InjectMocks;18 @InjectMocks
9 import org.mockito.InjectMocks;25 @InjectMocks BeanAwaitingInjection awaitingInjection;
10 import org.mockito.InjectMocks;31 @InjectMocks private ExampleService exampleService = new ExampleService();
6 import org.mockito.InjectMocks;20 @InjectMocks FooService fooService;
10 import org.mockito.InjectMocks;37 @InjectMocks private TestedSystem sut = new TestedSystem();
8 import org.mockito.InjectMocks;17 @InjectMocks private FieldCharsetHolder fieldCharsetHolder;18 @InjectMocks private ConstructorCharsetHolder constructorCharsetHolder;
8 import org.mockito.InjectMocks;53 if (null != field.getAnnotation(InjectMocks.class)) { in scan()65 …throw unsupportedCombinationOfAnnotations(annotation.getSimpleName(), InjectMocks.class.getSimpleN… in assertNoAnnotations()
5 import org.mockito.InjectMocks;20 @InjectMocks
5 import org.mockito.InjectMocks;21 @InjectMocks
9 import org.mockito.InjectMocks;22 @InjectMocks private ListDependent listDependent = new ListDependent();
4 import org.mockito.InjectMocks;14 @InjectMocks
8 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()
11 import org.mockito.InjectMocks;27 @InjectMocks private ArticleManager articleManager;
6 import org.mockito.InjectMocks;26 @InjectMocks PluginFinder finder;
13 import org.mockito.InjectMocks;52 … if (field.isAnnotationPresent(Spy.class) && !field.isAnnotationPresent(InjectMocks.class)) { in process()