Class AbstractAnnotationProcessingTest
- java.lang.Object
-
- io.microsphere.test.annotation.processing.AbstractAnnotationProcessingTest
-
@ExtendWith(io.microsphere.test.annotation.processing.CompilerInvocationInterceptor.class) public abstract class AbstractAnnotationProcessingTest extends java.lang.ObjectAbstractAnnotationProcessing Test case- Since:
- 1.0.0
- Author:
- Mercy
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.lang.model.util.Elementselementsprotected static java.util.Collection[]EMPTY_COLLECTION_ARRAYprotected static javax.lang.model.element.Element[]EMPTY_ELEMENT_ARRAYprotected static java.lang.reflect.Type[]EMPTY_TYPE_ARRAYprotected static javax.lang.model.type.TypeMirror[]EMPTY_TYPE_MIRROR_ARRAYprotected static javax.lang.model.AnnotatedConstructNULL_ANNOTATED_CONSTRUCTprotected static javax.lang.model.element.AnnotationMirrorNULL_ANNOTATION_MIRRORprotected static java.lang.ClassNULL_CLASSprotected static java.lang.Class[]NULL_CLASS_ARRAYprotected static java.util.CollectionNULL_COLLECTIONprotected static javax.lang.model.element.ElementNULL_ELEMENTprotected static javax.lang.model.element.Element[]NULL_ELEMENT_ARRAYprotected static javax.lang.model.element.ElementKindNULL_ELEMENT_KINDprotected static javax.lang.model.element.VariableElementNULL_FIELDprotected static java.util.ListNULL_LISTprotected static javax.lang.model.element.ExecutableElementNULL_METHODprotected static javax.lang.model.element.ExecutableElement[]NULL_METHOD_ARRAYprotected static javax.lang.model.element.ModifierNULL_MODIFIERprotected static javax.lang.model.element.Modifier[]NULL_MODIFIER_ARRAYprotected static java.util.function.Predicate[]NULL_PREDICATE_ARRAYprotected static javax.annotation.processing.ProcessingEnvironmentNULL_PROCESSING_ENVIRONMENTprotected static java.lang.StringNULL_STRINGprotected static java.lang.String[]NULL_STRING_ARRAYprotected static java.lang.reflect.TypeNULL_TYPEprotected static java.lang.reflect.Type[]NULL_TYPE_ARRAYprotected static javax.lang.model.element.TypeElementNULL_TYPE_ELEMENTprotected static javax.lang.model.type.TypeMirrorNULL_TYPE_MIRRORprotected static javax.lang.model.type.TypeMirror[]NULL_TYPE_MIRROR_ARRAYprotected javax.annotation.processing.ProcessingEnvironmentprocessingEnvprotected javax.annotation.processing.RoundEnvironmentroundEnvprotected java.lang.Class<?>testClassprotected java.lang.StringtestClassNameprotected javax.lang.model.type.DeclaredTypetestDeclaredTypeprotected javax.lang.model.element.TypeElementtestTypeElementprotected javax.lang.model.type.TypeMirrortestTypeMirrorprotected javax.lang.model.util.Typestypes
-
Constructor Summary
Constructors Constructor Description AbstractAnnotationProcessingTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCompiledClasses(java.util.Set<java.lang.Class<?>> compiledClasses)The classes to be compiled.protected voidafterTest(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext, java.lang.Object result, java.lang.Throwable failure)After Testprotected voidbeforeTest(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext)Before Testprotected voidinitTestClass(java.lang.Class<?> testClass)
-
-
-
Field Detail
-
NULL_TYPE_MIRROR
protected static final javax.lang.model.type.TypeMirror NULL_TYPE_MIRROR
-
EMPTY_TYPE_MIRROR_ARRAY
protected static final javax.lang.model.type.TypeMirror[] EMPTY_TYPE_MIRROR_ARRAY
-
NULL_TYPE_MIRROR_ARRAY
protected static final javax.lang.model.type.TypeMirror[] NULL_TYPE_MIRROR_ARRAY
-
EMPTY_COLLECTION_ARRAY
protected static final java.util.Collection[] EMPTY_COLLECTION_ARRAY
-
NULL_COLLECTION
protected static final java.util.Collection NULL_COLLECTION
-
NULL_LIST
protected static final java.util.List NULL_LIST
-
NULL_ELEMENT
protected static final javax.lang.model.element.Element NULL_ELEMENT
-
NULL_ELEMENT_KIND
protected static final javax.lang.model.element.ElementKind NULL_ELEMENT_KIND
-
EMPTY_ELEMENT_ARRAY
protected static final javax.lang.model.element.Element[] EMPTY_ELEMENT_ARRAY
-
NULL_ELEMENT_ARRAY
protected static final javax.lang.model.element.Element[] NULL_ELEMENT_ARRAY
-
NULL_TYPE_ELEMENT
protected static final javax.lang.model.element.TypeElement NULL_TYPE_ELEMENT
-
NULL_TYPE_ARRAY
protected static final java.lang.reflect.Type[] NULL_TYPE_ARRAY
-
EMPTY_TYPE_ARRAY
protected static final java.lang.reflect.Type[] EMPTY_TYPE_ARRAY
-
NULL_TYPE
protected static final java.lang.reflect.Type NULL_TYPE
-
NULL_PROCESSING_ENVIRONMENT
protected static final javax.annotation.processing.ProcessingEnvironment NULL_PROCESSING_ENVIRONMENT
-
NULL_STRING
protected static final java.lang.String NULL_STRING
-
NULL_STRING_ARRAY
protected static final java.lang.String[] NULL_STRING_ARRAY
-
NULL_CLASS
protected static final java.lang.Class NULL_CLASS
-
NULL_CLASS_ARRAY
protected static final java.lang.Class[] NULL_CLASS_ARRAY
-
NULL_ANNOTATED_CONSTRUCT
protected static final javax.lang.model.AnnotatedConstruct NULL_ANNOTATED_CONSTRUCT
-
NULL_PREDICATE_ARRAY
protected static final java.util.function.Predicate[] NULL_PREDICATE_ARRAY
-
NULL_FIELD
protected static final javax.lang.model.element.VariableElement NULL_FIELD
-
NULL_MODIFIER
protected static final javax.lang.model.element.Modifier NULL_MODIFIER
-
NULL_MODIFIER_ARRAY
protected static final javax.lang.model.element.Modifier[] NULL_MODIFIER_ARRAY
-
NULL_METHOD
protected static final javax.lang.model.element.ExecutableElement NULL_METHOD
-
NULL_METHOD_ARRAY
protected static final javax.lang.model.element.ExecutableElement[] NULL_METHOD_ARRAY
-
NULL_ANNOTATION_MIRROR
protected static final javax.lang.model.element.AnnotationMirror NULL_ANNOTATION_MIRROR
-
roundEnv
protected javax.annotation.processing.RoundEnvironment roundEnv
-
processingEnv
protected javax.annotation.processing.ProcessingEnvironment processingEnv
-
elements
protected javax.lang.model.util.Elements elements
-
types
protected javax.lang.model.util.Types types
-
testClass
protected java.lang.Class<?> testClass
-
testClassName
protected java.lang.String testClassName
-
testTypeElement
protected javax.lang.model.element.TypeElement testTypeElement
-
testTypeMirror
protected javax.lang.model.type.TypeMirror testTypeMirror
-
testDeclaredType
protected javax.lang.model.type.DeclaredType testDeclaredType
-
-
Method Detail
-
addCompiledClasses
protected void addCompiledClasses(java.util.Set<java.lang.Class<?>> compiledClasses)
The classes to be compiled.- Parameters:
compiledClasses- the mutableSetfor classes to be compiled
-
initTestClass
protected void initTestClass(java.lang.Class<?> testClass)
-
beforeTest
protected void beforeTest(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext)Before Test- Parameters:
invocationContext-ReflectiveInvocationContextextensionContext-ExtensionContext
-
afterTest
protected void afterTest(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext, @Nullable java.lang.Object result, @Nullable java.lang.Throwable failure)After Test- Parameters:
invocationContext-ReflectiveInvocationContextextensionContext-ExtensionContextresult- the result after test method returningfailure- the failure after the test methods' execution
-
-