public class JavaTestGenerator<T extends JavaTestGenerator> extends AbstractTestGenerator<T>
TestGenerator.GeneratorModelog, self| Constructor and Description |
|---|
JavaTestGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Create tests with this generator.
|
protected List<com.squareup.javapoet.CodeBlock> |
getActions()
List of test actions to be added as code to the method body section of the test.
|
protected com.squareup.javapoet.AnnotationSpec |
getBaseExtension()
Gets the Junit5 base extension to use.
|
protected com.squareup.javapoet.TypeName |
getBaseType()
Gets the test class base type to extend from.
|
protected com.squareup.javapoet.AnnotationSpec |
getCitrusAnnotation()
Gets the Citrus XML test annotation.
|
TestGenerator.GeneratorMode |
getMode()
Gets the mode.
|
String |
getSrcDirectory()
Get the test source directory.
|
void |
setMode(TestGenerator.GeneratorMode mode)
Sets the mode.
|
T |
withMode(TestGenerator.GeneratorMode mode)
Set the mode describing which part (client/server) to use.
|
getAuthor, getCreationDate, getDescription, getFileExtension, getFramework, getMethodName, getName, getPackage, getTargetFile, getTargetPackage, getUpdateDateTime, isDisabled, setAuthor, setDescription, setDisabled, setFileExtension, setFramework, setName, setPackage, setSrcDirectory, setTargetPackage, usePackage, useSrcDirectory, withAuthor, withDescription, withDisabled, withFileExtension, withFramework, withNamepublic void create()
TestGeneratorprotected com.squareup.javapoet.TypeName getBaseType()
protected com.squareup.javapoet.AnnotationSpec getBaseExtension()
protected com.squareup.javapoet.AnnotationSpec getCitrusAnnotation()
protected List<com.squareup.javapoet.CodeBlock> getActions()
public T withMode(TestGenerator.GeneratorMode mode)
mode - The mode to generate the test forpublic String getSrcDirectory()
AbstractTestGeneratorgetSrcDirectory in class AbstractTestGenerator<T extends JavaTestGenerator>public TestGenerator.GeneratorMode getMode()
public void setMode(TestGenerator.GeneratorMode mode)
mode - The mode to set (client/serverCopyright © 2008–2019 ConSol Software GmbH. All rights reserved.