de.holisticon.annotationprocessortoolkit.testhelper
Class AbstractAnnotationProcessorIntegrationTest<T extends Processor>

java.lang.Object
  extended by de.holisticon.annotationprocessortoolkit.testhelper.AbstractAnnotationProcessorTest<AnnotationProcessorIntegrationTestConfiguration>
      extended by de.holisticon.annotationprocessortoolkit.testhelper.AbstractAnnotationProcessorIntegrationTest<T>

public abstract class AbstractAnnotationProcessorIntegrationTest<T extends Processor>
extends AbstractAnnotationProcessorTest<AnnotationProcessorIntegrationTestConfiguration>

Abstract test base class used to check if source files are processed correctly.


Field Summary
 
Fields inherited from class de.holisticon.annotationprocessortoolkit.testhelper.AbstractAnnotationProcessorTest
TEST_EXECUTION_MESSAGE
 
Constructor Summary
protected AbstractAnnotationProcessorIntegrationTest(AnnotationProcessorIntegrationTestConfiguration annotationProcessorIntegrationTestConfiguration)
           
 
Method Summary
protected  T 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

AbstractAnnotationProcessorIntegrationTest

protected AbstractAnnotationProcessorIntegrationTest(AnnotationProcessorIntegrationTestConfiguration annotationProcessorIntegrationTestConfiguration)
Method Detail

getAnnotationProcessor

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

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

getSourceFileForCompilation

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

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


Copyright © 2017 Holisticon AG. All Rights Reserved.