Package com.diffblue.cover.annotations
Annotation Type InTestsMock
-
@Retention(CLASS) @Target({PACKAGE,TYPE,METHOD}) @Repeatable(Repeatable.class) public @interface InTestsMock
Indicates whether tests of the annotated item should mock the classes identified byvalue(). Without annotation then mocking is assumed to beMockDecision.ALLOWED, but with annotation then the decision defaults toMockDecision.RECOMMENDED. The decision can be overridden with an explicitdecision()value.- Since:
- Diffblue Cover 2024.04.02
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description MockDecisiondecision
-
-
-
Element Detail
-
value
Class<?>[] value
- Returns:
- the classes to mock (or not).
-
-
-
decision
MockDecision decision
- Returns:
- the mocking decision to apply.
- Default:
- com.diffblue.cover.annotations.MockDecision.RECOMMENDED
-
-