This is a configurable ExclusionStrategy that can be used for unit testing. @author Joel Leitch
| 23 | * @author Joel Leitch |
| 24 | */ |
| 25 | final class MockExclusionStrategy implements ExclusionStrategy { |
| 26 | private final boolean skipClass; |
| 27 | private final boolean skipField; |
| 28 | |
| 29 | public MockExclusionStrategy(boolean skipClass, boolean skipField) { |
| 30 | this.skipClass = skipClass; |
| 31 | this.skipField = skipField; |
| 32 | } |
| 33 | |
| 34 | public boolean shouldSkipField(FieldAttributes f) { |
| 35 | return skipField; |
| 36 | } |
| 37 | |
| 38 | public boolean shouldSkipClass(Class<?> clazz) { |
| 39 | return skipClass; |
| 40 | } |
| 41 | } |
nothing calls this directly
no outgoing calls
no test coverage detected