de.holisticon.annotationprocessortoolkit.testhelper
Class AbstractAnnotationProcessorUnitTest

java.lang.Object
  extended by de.holisticon.annotationprocessortoolkit.testhelper.AbstractAnnotationProcessorTest<AnnotationProcessorUnitTestConfiguration>
      extended by de.holisticon.annotationprocessortoolkit.testhelper.AbstractAnnotationProcessorUnitTest

public abstract class AbstractAnnotationProcessorUnitTest
extends AbstractAnnotationProcessorTest<AnnotationProcessorUnitTestConfiguration>

Abstract base class for testing annotation processor internal stuff where tools offered by ProcessEnvironment are needed.


Field Summary
 
Fields inherited from class de.holisticon.annotationprocessortoolkit.testhelper.AbstractAnnotationProcessorTest
TEST_EXECUTION_MESSAGE
 
Constructor Summary
AbstractAnnotationProcessorUnitTest(AnnotationProcessorUnitTestConfiguration annotationProcessorTestConfiguration)
           
 
Method Summary
protected  Processor getAnnotationProcessor()
          Gets the annotation processor to used for testing.
protected  JavaFileObject getSourceFileForCompilation()
          Gets the JavaFileObject to be compiled.
 
Methods inherited from class de.holisticon.annotationprocessortoolkit.testhelper.AbstractAnnotationProcessorTest
getAnnotationProcessorTestConfiguration, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAnnotationProcessorUnitTest

public AbstractAnnotationProcessorUnitTest(AnnotationProcessorUnitTestConfiguration annotationProcessorTestConfiguration)
Method Detail

getSourceFileForCompilation

protected JavaFileObject getSourceFileForCompilation()
Description copied from class: AbstractAnnotationProcessorTest
Gets the JavaFileObject to be compiled.

Specified by:
getSourceFileForCompilation in class AbstractAnnotationProcessorTest<AnnotationProcessorUnitTestConfiguration>
Returns:
the code to be compiled

getAnnotationProcessor

protected Processor getAnnotationProcessor()
Description copied from class: AbstractAnnotationProcessorTest
Gets the annotation processor to used for testing.

Specified by:
getAnnotationProcessor in class AbstractAnnotationProcessorTest<AnnotationProcessorUnitTestConfiguration>
Returns:
the annotation processor to use for testing


Copyright © 2017 Holisticon AG. All Rights Reserved.