de.holisticon.annotationprocessortoolkit.testhelper
Class AbstractAnnotationProcessorTest<T extends AnnotationProcessorCommonTestConfiguration>

java.lang.Object
  extended by de.holisticon.annotationprocessortoolkit.testhelper.AbstractAnnotationProcessorTest<T>
Direct Known Subclasses:
AbstractAnnotationProcessorIntegrationTest, AbstractAnnotationProcessorUnitTest

public abstract class AbstractAnnotationProcessorTest<T extends AnnotationProcessorCommonTestConfiguration>
extends Object

Abstract base class which allows parameterized tests.


Field Summary
static String TEST_EXECUTION_MESSAGE
           
 
Constructor Summary
AbstractAnnotationProcessorTest(T annotationProcessorCommonTestConfiguration)
           
 
Method Summary
protected abstract  Processor getAnnotationProcessor()
          Gets the annotation processor to used for testing.
protected  T getAnnotationProcessorTestConfiguration()
           
protected abstract  JavaFileObject getSourceFileForCompilation()
          Gets the JavaFileObject to be compiled.
protected  void test()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_EXECUTION_MESSAGE

public static final String TEST_EXECUTION_MESSAGE
See Also:
Constant Field Values
Constructor Detail

AbstractAnnotationProcessorTest

public AbstractAnnotationProcessorTest(T annotationProcessorCommonTestConfiguration)
Method Detail

getAnnotationProcessor

protected abstract Processor getAnnotationProcessor()
Gets the annotation processor to used for testing.

Returns:
the annotation processor to use for testing

getSourceFileForCompilation

protected abstract JavaFileObject getSourceFileForCompilation()
Gets the JavaFileObject to be compiled.

Returns:
the code to be compiled

test

protected void test()

getAnnotationProcessorTestConfiguration

protected T getAnnotationProcessorTestConfiguration()


Copyright © 2017 Holisticon AG. All Rights Reserved.