public class XmlTestGenerator<T extends XmlTestGenerator> extends AbstractTemplateBasedTestGenerator<T>
TestGenerator.GeneratorModelog, self| Constructor and Description |
|---|
XmlTestGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Create the test case.
|
protected List<Object> |
getActions()
List of test actions to be marshalled in the actions section of the test.
|
protected TestGenerator |
getJavaTestGenerator()
Gets Java test generator for this XML test.
|
org.springframework.oxm.jaxb.Jaxb2Marshaller |
getMarshaller()
Gets the marshaller.
|
protected List<String> |
getMarshallerContextPaths()
Marshaller context paths.
|
TestGenerator.GeneratorMode |
getMode()
Gets the mode.
|
com.sun.xml.bind.marshaller.NamespacePrefixMapper |
getNamespacePrefixMapper()
Gets the namespacePrefixMapper.
|
String |
getSrcDirectory()
Get the test source directory.
|
protected String |
getTemplateFilePath()
Subclasses must provide proper template file path.
|
protected Properties |
getTemplateProperties()
Prepares the test case properties for dynamic property replacement in
test case templates.
|
void |
setMarshaller(org.springframework.oxm.jaxb.Jaxb2Marshaller marshaller)
Sets the marshaller.
|
void |
setMode(TestGenerator.GeneratorMode mode)
Sets the mode.
|
void |
setNamespacePrefixMapper(com.sun.xml.bind.marshaller.NamespacePrefixMapper namespacePrefixMapper)
Sets the namespacePrefixMapper.
|
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 T withMode(TestGenerator.GeneratorMode mode)
mode - protected List<String> getMarshallerContextPaths()
public void create()
AbstractTemplateBasedTestGeneratorcreate in interface TestGenerator<T extends XmlTestGenerator>create in class AbstractTemplateBasedTestGenerator<T extends XmlTestGenerator>protected Properties getTemplateProperties()
AbstractTemplateBasedTestGeneratorgetTemplateProperties in class AbstractTemplateBasedTestGenerator<T extends XmlTestGenerator>protected List<Object> getActions()
protected TestGenerator getJavaTestGenerator()
protected String getTemplateFilePath()
AbstractTemplateBasedTestGeneratorgetTemplateFilePath in class AbstractTemplateBasedTestGenerator<T extends XmlTestGenerator>public String getSrcDirectory()
AbstractTestGeneratorgetSrcDirectory in class AbstractTestGenerator<T extends XmlTestGenerator>public void setMarshaller(org.springframework.oxm.jaxb.Jaxb2Marshaller marshaller)
marshaller - public org.springframework.oxm.jaxb.Jaxb2Marshaller getMarshaller()
public com.sun.xml.bind.marshaller.NamespacePrefixMapper getNamespacePrefixMapper()
public void setNamespacePrefixMapper(com.sun.xml.bind.marshaller.NamespacePrefixMapper namespacePrefixMapper)
namespacePrefixMapper - public TestGenerator.GeneratorMode getMode()
public void setMode(TestGenerator.GeneratorMode mode)
mode - Copyright © 2008–2019 ConSol Software GmbH. All rights reserved.