Home
last modified time | relevance | path

Searched refs:MockitoAnnotations (Results 1 – 25 of 123) sorted by relevance

12345

/external/mockito/src/test/java/org/mockitousage/annotation/
DWrongSetOfAnnotationsTest.java21 MockitoAnnotations.initMocks(new Object() { in should_not_allow_Mock_and_Spy()
29 MockitoAnnotations.initMocks(new Object() { @InjectMocks @Spy List<?> mock; }); in should_not_allow_Spy_and_InjectMocks_on_interfaces()
38 MockitoAnnotations.initMocks(new Object() { in should_allow_Spy_and_InjectMocks()
48 MockitoAnnotations.initMocks(new Object() { in should_not_allow_Mock_and_InjectMocks()
55 MockitoAnnotations.initMocks(new Object() { in should_not_allow_Captor_and_Mock()
62 MockitoAnnotations.initMocks(new Object() { in should_not_allow_Captor_and_Spy()
69 MockitoAnnotations.initMocks(new Object() { in should_not_allow_Captor_and_InjectMocks()
DMockInjectionUsingSetterOrPropertyTest.java12 import org.mockito.MockitoAnnotations;
54 MockitoAnnotations.initMocks(this); in enforces_new_instances()
82 MockitoAnnotations.initMocks(this); in should_inject_mocks_if_annotated()
88 MockitoAnnotations.initMocks(this); in should_not_inject_if_not_annotated()
94 MockitoAnnotations.initMocks(this); in should_inject_mocks_for_class_hierarchy_if_annotated()
101 MockitoAnnotations.initMocks(this); in should_inject_mocks_by_name()
108 MockitoAnnotations.initMocks(this); in should_inject_spies()
114 MockitoAnnotations.initMocks(this); in should_insert_into_field_with_matching_name_when_multiple_fields_of_same_type_exists_in_injectee()
135 MockitoAnnotations.initMocks(failing); in should_report_nicely()
DSpyAnnotationTest.java17 import org.mockito.MockitoAnnotations;
74 MockitoAnnotations.initMocks(withSpy); in should_allow_spying_on_interfaces()
88 MockitoAnnotations.initMocks(withSpy); in should_allow_spying_on_interfaces_when_instance_is_concrete()
102 MockitoAnnotations.initMocks(new FailingSpy()); in should_report_when_no_arg_less_constructor()
119 MockitoAnnotations.initMocks(new FailingSpy()); in should_report_when_constructor_is_explosive()
139 MockitoAnnotations.initMocks(withSpy); in should_spy_abstract_class()
170 MockitoAnnotations.initMocks(outer); in should_spy_inner_class()
191 MockitoAnnotations.initMocks(new WithSpy()); in should_report_when_enclosing_instance_is_needed()
201 MockitoAnnotations.initMocks(new WithInnerPrivate()); in should_report_private_inner_not_supported()
215 MockitoAnnotations.initMocks(new WithInnerPrivateAbstract()); in should_report_private_abstract_inner_not_supported()
[all …]
DCaptorAnnotationTest.java52 MockitoAnnotations.initMocks(this); in testNormalUsage()
81 MockitoAnnotations.initMocks(new WrongType()); in shouldScreamWhenWrongTypeForCaptor()
95 MockitoAnnotations.initMocks(new ToManyAnnotations()); in shouldScreamWhenMoreThanOneMockitoAnnotation()
107 MockitoAnnotations.initMocks(null); in shouldScreamWhenInitializingCaptorsForNullClass()
116 MockitoAnnotations.initMocks(sub); in shouldLookForAnnotatedCaptorsInSuperClasses()
DAnnotationsTest.java13 import org.mockito.MockitoAnnotations;
42 MockitoAnnotations.initMocks(this); in setup()
59 MockitoAnnotations.initMocks(null); in shouldScreamWhenInitializingMocksForNullClass()
70 MockitoAnnotations.initMocks(sub); in shouldLookForAnnotatedMocksInSuperClasses()
DSpyAnnotationInitializedInBaseClassTest.java9 import org.mockito.MockitoAnnotations;
38 MockitoAnnotations.initMocks(subClass); in shouldInitSpiesInBaseClass()
51 MockitoAnnotations.initMocks(this); in before()
DDeprecatedAnnotationEngineApiTest.java12 import org.mockito.MockitoAnnotations;
50 MockitoAnnotations.initMocks(test); in shouldInjectMocksIfThereIsNoUserDefinedEngine()
66 MockitoAnnotations.initMocks(test); in shouldRespectUsersEngine()
DMockInjectionUsingConstructorTest.java18 import org.mockito.MockitoAnnotations;
36 import static org.mockito.MockitoAnnotations.initMocks;
50 MockitoAnnotations.initMocks(this); in before()
94 MockitoAnnotations.initMocks(new ATest()); in should_report_failure_only_when_object_initialization_throws_exception()
DCaptorAnnotationUnhappyPathTest.java11 import org.mockito.MockitoAnnotations;
34 MockitoAnnotations.initMocks(this); in shouldFailIfCaptorHasWrongType()
/external/mockito/src/test/java/org/mockitousage/bugs/creation/
DConstructorInvokingMethodShouldNotRaiseExceptionTest.java10 import org.mockito.MockitoAnnotations;
24 MockitoAnnotations.initMocks(this); in should_be_able_to_create_spy()
40 MockitoAnnotations.initMocks(this); in should_be_able_to_create_spy()
59 MockitoAnnotations.initMocks(this); in should_be_able_to_create_spy()
/external/mockito/src/test/java/org/mockitousage/bugs/injection/
DParentTestMockInjectionTest.java12 import org.mockito.MockitoAnnotations;
22 MockitoAnnotations.initMocks(it); in injectMocksShouldInjectMocksFromTestSuperClasses()
43 MockitoAnnotations.initMocks(this); in setup()
/external/mockito/src/test/java/org/mockitousage/bugs/
DFinalHashCodeAndEqualsRaiseNPEInInitMocksTest.java10 import org.mockito.MockitoAnnotations;
22 MockitoAnnotations.initMocks(this); in dont_raise_NullPointerException()
/external/mockito/src/test/java/org/mockito/internal/verification/
DVerificationWithDescriptionTest.java10 import org.mockito.MockitoAnnotations;
27 MockitoAnnotations.initMocks(this); in setUp()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DForwardingServerCallListenerTest.java29 import org.mockito.MockitoAnnotations;
42 MockitoAnnotations.initMocks(this); in setUp()
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/
DJaegerTraceExporterTest.java29 import org.mockito.MockitoAnnotations;
39 MockitoAnnotations.initMocks(this); in setUp()
/external/opencensus-java/exporters/trace/logging/src/test/java/io/opencensus/exporter/trace/logging/
DLoggingTraceExporterTest.java30 import org.mockito.MockitoAnnotations;
39 MockitoAnnotations.initMocks(this); in setUp()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DAbstractReadableBufferTest.java27 import org.mockito.MockitoAnnotations;
41 MockitoAnnotations.initMocks(this); in setup()
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/
DStackdriverTraceExporterTest.java30 import org.mockito.MockitoAnnotations;
40 MockitoAnnotations.initMocks(this); in setUp()
/external/opencensus-java/exporters/trace/zipkin/src/test/java/io/opencensus/exporter/trace/zipkin/
DZipkinTraceExporterTest.java30 import org.mockito.MockitoAnnotations;
40 MockitoAnnotations.initMocks(this); in setUp()
/external/opencensus-java/exporters/trace/instana/src/test/java/io/opencensus/exporter/trace/instana/
DInstanaTraceExporterTest.java30 import org.mockito.MockitoAnnotations;
41 MockitoAnnotations.initMocks(this); in setUp()
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/
DOcAgentTraceExporterTest.java30 import org.mockito.MockitoAnnotations;
40 MockitoAnnotations.initMocks(this); in setUp()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/internal/
DTimestampConverterTest.java29 import org.mockito.MockitoAnnotations;
39 MockitoAnnotations.initMocks(this); in setUp()
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/
DHttpViewsTest.java28 import org.mockito.MockitoAnnotations;
38 MockitoAnnotations.initMocks(this); in setUp()
/external/ims/rcs/presencepolling/tests/src/com/android/service/ims/presence/
DPresencePollingTestBase.java27 import org.mockito.MockitoAnnotations;
45 MockitoAnnotations.initMocks(this); in setUp()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowJobServiceTest.java14 import org.mockito.MockitoAnnotations;
28 MockitoAnnotations.initMocks(this); in setUp()

12345