|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.smartics.testdoc.collect.extractor.AbstractExtractor
public abstract class AbstractExtractor
Base implementation for Extracting unit test doc information.
Field Summary | |
---|---|
protected de.smartics.testdoc.collect.extractor.CategoryExtractor |
categoryExtractor Extracts category information. |
protected Elements |
elementUtils The utilities of the APT interface. |
protected de.smartics.testdoc.collect.extractor.TestDocHintsExtractor |
hintExtractor Extracts hint information. |
protected SourceCodeHelper |
sourceCodeHelper The helper to access source code information. |
protected TypeElement |
testCaseType The test case that is analyzed. |
protected de.smartics.testdoc.collect.extractor.TestDocAnnotationExtractor |
uutExtractor Extracts UUT information. |
Constructor Summary | |
---|---|
protected |
AbstractExtractor(ExtractorConfig config, TypeElement testCaseType) Default constructor. |
Method Summary | |
---|---|
protected String |
calculateTestSentence(de.smartics.testdoc.collect.extractor.TestDocHintsExtractor.Hints hints, String testName) |
protected ScenarioTestDoc |
createScenarioIfElementIsTestMethod(de.smartics.testdoc.collect.extractor.TestDocAnnotationExtractor.UutInfo uutInfo, String testCaseType, ExecutableElement testMethod) |
protected static boolean |
hasAnnotation(Element method, Class<? extends Annotation> annotation) |
protected static boolean |
hasNotAnnotation(Element method, Class<? extends Annotation> annotation) |
protected static boolean |
isTestMethodWithoutUutAnnotation(Element element) |
abstract UnitTestDoc |
readTestDoc() Reads the test documentation from the element the extractor instance is associated with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Elements elementUtils
protected final SourceCodeHelper sourceCodeHelper
protected final TypeElement testCaseType
protected final de.smartics.testdoc.collect.extractor.CategoryExtractor categoryExtractor
protected final de.smartics.testdoc.collect.extractor.TestDocHintsExtractor hintExtractor
protected final de.smartics.testdoc.collect.extractor.TestDocAnnotationExtractor uutExtractor
Constructor Detail |
---|
protected AbstractExtractor(ExtractorConfig config, TypeElement testCaseType) throws IllegalArgumentException
config
- the configuration to access processing information.
testCaseType
- the test case that has an annotation that potentially specifies the unit under test.
IllegalArgumentException
- if the
declaredUutField
is not a field declaration within a class or any of the arguments is
null
.
Method Detail |
---|
public abstract UnitTestDoc readTestDoc()
protected ScenarioTestDoc createScenarioIfElementIsTestMethod(de.smartics.testdoc.collect.extractor.TestDocAnnotationExtractor.UutInfo uutInfo, String testCaseType, ExecutableElement testMethod)
protected String calculateTestSentence(de.smartics.testdoc.collect.extractor.TestDocHintsExtractor.Hints hints, String testName)
protected static boolean isTestMethodWithoutUutAnnotation(Element element)
protected static boolean hasAnnotation(Element method, Class<? extends Annotation> annotation)
protected static boolean hasNotAnnotation(Element method, Class<? extends Annotation> annotation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |