/external/mockito/src/test/java/org/mockitousage/annotation/ |
D | WrongSetOfAnnotationsTest.java | 21 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()
|
D | MockInjectionUsingSetterOrPropertyTest.java | 12 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()
|
D | SpyAnnotationTest.java | 17 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 …]
|
D | CaptorAnnotationTest.java | 52 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()
|
D | AnnotationsTest.java | 13 import org.mockito.MockitoAnnotations; 42 MockitoAnnotations.initMocks(this); in setup() 59 MockitoAnnotations.initMocks(null); in shouldScreamWhenInitializingMocksForNullClass() 70 MockitoAnnotations.initMocks(sub); in shouldLookForAnnotatedMocksInSuperClasses()
|
D | SpyAnnotationInitializedInBaseClassTest.java | 9 import org.mockito.MockitoAnnotations; 38 MockitoAnnotations.initMocks(subClass); in shouldInitSpiesInBaseClass() 51 MockitoAnnotations.initMocks(this); in before()
|
D | DeprecatedAnnotationEngineApiTest.java | 12 import org.mockito.MockitoAnnotations; 50 MockitoAnnotations.initMocks(test); in shouldInjectMocksIfThereIsNoUserDefinedEngine() 66 MockitoAnnotations.initMocks(test); in shouldRespectUsersEngine()
|
D | MockInjectionUsingConstructorTest.java | 18 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()
|
D | CaptorAnnotationUnhappyPathTest.java | 11 import org.mockito.MockitoAnnotations; 34 MockitoAnnotations.initMocks(this); in shouldFailIfCaptorHasWrongType()
|
/external/mockito/src/test/java/org/mockitousage/bugs/creation/ |
D | ConstructorInvokingMethodShouldNotRaiseExceptionTest.java | 10 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/ |
D | ParentTestMockInjectionTest.java | 12 import org.mockito.MockitoAnnotations; 22 MockitoAnnotations.initMocks(it); in injectMocksShouldInjectMocksFromTestSuperClasses() 43 MockitoAnnotations.initMocks(this); in setup()
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | FinalHashCodeAndEqualsRaiseNPEInInitMocksTest.java | 10 import org.mockito.MockitoAnnotations; 22 MockitoAnnotations.initMocks(this); in dont_raise_NullPointerException()
|
/external/mockito/src/test/java/org/mockito/internal/verification/ |
D | VerificationWithDescriptionTest.java | 10 import org.mockito.MockitoAnnotations; 27 MockitoAnnotations.initMocks(this); in setUp()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | ForwardingServerCallListenerTest.java | 29 import org.mockito.MockitoAnnotations; 42 MockitoAnnotations.initMocks(this); in setUp()
|
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/ |
D | JaegerTraceExporterTest.java | 29 import org.mockito.MockitoAnnotations; 39 MockitoAnnotations.initMocks(this); in setUp()
|
/external/opencensus-java/exporters/trace/logging/src/test/java/io/opencensus/exporter/trace/logging/ |
D | LoggingTraceExporterTest.java | 30 import org.mockito.MockitoAnnotations; 39 MockitoAnnotations.initMocks(this); in setUp()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | AbstractReadableBufferTest.java | 27 import org.mockito.MockitoAnnotations; 41 MockitoAnnotations.initMocks(this); in setup()
|
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/ |
D | StackdriverTraceExporterTest.java | 30 import org.mockito.MockitoAnnotations; 40 MockitoAnnotations.initMocks(this); in setUp()
|
/external/opencensus-java/exporters/trace/zipkin/src/test/java/io/opencensus/exporter/trace/zipkin/ |
D | ZipkinTraceExporterTest.java | 30 import org.mockito.MockitoAnnotations; 40 MockitoAnnotations.initMocks(this); in setUp()
|
/external/opencensus-java/exporters/trace/instana/src/test/java/io/opencensus/exporter/trace/instana/ |
D | InstanaTraceExporterTest.java | 30 import org.mockito.MockitoAnnotations; 41 MockitoAnnotations.initMocks(this); in setUp()
|
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/ |
D | OcAgentTraceExporterTest.java | 30 import org.mockito.MockitoAnnotations; 40 MockitoAnnotations.initMocks(this); in setUp()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/internal/ |
D | TimestampConverterTest.java | 29 import org.mockito.MockitoAnnotations; 39 MockitoAnnotations.initMocks(this); in setUp()
|
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/ |
D | HttpViewsTest.java | 28 import org.mockito.MockitoAnnotations; 38 MockitoAnnotations.initMocks(this); in setUp()
|
/external/ims/rcs/presencepolling/tests/src/com/android/service/ims/presence/ |
D | PresencePollingTestBase.java | 27 import org.mockito.MockitoAnnotations; 45 MockitoAnnotations.initMocks(this); in setUp()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowJobServiceTest.java | 14 import org.mockito.MockitoAnnotations; 28 MockitoAnnotations.initMocks(this); in setUp()
|