Class AbstractMockChecker.Reason
java.lang.Object
com.google.errorprone.bugpatterns.AbstractMockChecker.Reason
- Enclosing class:
AbstractMockChecker<T extends Annotation>
An explanation of what type should not be mocked, and the reason why.
- Author:
- amalloy@google.com (Alan Malloy)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractMockChecker.Reasonabstract Stringreason()The reason this class should not be mocked, which may be as simple as "it is annotated to forbid mocking" but may also provide a suggested workaround.abstract com.sun.tools.javac.code.TypeA Type object representing the class that should not be mocked.
-
Constructor Details
-
Reason
public Reason()
-
-
Method Details
-
of
-
unmockableClass
public abstract com.sun.tools.javac.code.Type unmockableClass()A Type object representing the class that should not be mocked. -
reason
The reason this class should not be mocked, which may be as simple as "it is annotated to forbid mocking" but may also provide a suggested workaround.
-