@Inherited @Documented @Retention(value=RUNTIME) @Target(value={TYPE,ANNOTATION_TYPE}) public @interface DoNotMock
When marking a type @DoNotMock
, you should always point to alternative testing
solutions such as standard fakes or other testing utilities.
Mockito tests can enforce this annotation by using a custom MockMaker which intercepts creation of mocks.
public abstract String value
This should suggest alternative APIs to use for testing objects of this type.
Copyright © 2021. All rights reserved.