Package org.citrusframework.generate.xml
Class WsdlXmlTestGenerator
java.lang.Object
org.citrusframework.generate.AbstractTestGenerator<T>
org.citrusframework.generate.AbstractTemplateBasedTestGenerator<T>
org.citrusframework.generate.xml.XmlTestGenerator<T>
org.citrusframework.generate.xml.MessagingXmlTestGenerator<WsdlXmlTestGenerator>
org.citrusframework.generate.xml.WsdlXmlTestGenerator
- All Implemented Interfaces:
TestGenerator<WsdlXmlTestGenerator>,WsdlTestGenerator<WsdlXmlTestGenerator>
public class WsdlXmlTestGenerator
extends MessagingXmlTestGenerator<WsdlXmlTestGenerator>
implements WsdlTestGenerator<WsdlXmlTestGenerator>
Test generator creates one to many test cases based on operations defined in a XML schema XSD.
- Since:
- 2.7.4
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.generate.TestGenerator
TestGenerator.GeneratorMode -
Field Summary
Fields inherited from class org.citrusframework.generate.AbstractTestGenerator
self -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Create the test case.protected MessagegenerateInboundMessage(Message message) Inbound message generation hook for subclasses.protected MessagegenerateOutboundMessage(Message message) Outbound message generation hook for subclasses.Marshaller context paths.Marshaller schema.Gets the namePrefix.Gets the nameSuffix.Gets the operation.getWsdl()Gets the wsdl.voidsetNamePrefix(String namePrefix) Sets the namePrefix.voidsetNameSuffix(String nameSuffix) Sets the nameSuffix.voidsetOperation(String operation) Sets the operation.voidSets the wsdl.withInboundMappingFile(String mappingFile) Add inbound XPath expression mappings file to manipulate inbound message content.withInboundMappings(Map<String, String> mappings) Add inbound XPath expression mappings to manipulate inbound message content.withNamePrefix(String prefix) Set the test name prefix to use.withNameSuffix(String suffix) Set the test name suffix to use.withOperation(String operation) Set the wsdl operation to use.withOutboundMappingFile(String mappingFile) Add outbound XPath expression mappings file to manipulate outbound message content.withOutboundMappings(Map<String, String> mappings) Add outbound XPath expression mappings to manipulate outbound message content.Set the wsdl schema resource to use.Methods inherited from class org.citrusframework.generate.xml.MessagingXmlTestGenerator
addRequestHeader, addResponseHeader, getActions, getEndpoint, getReceiveRequestActionProvider, getReceiveResponseActionProvider, getSendRequestActionProvider, getSendResponseActionProvider, setEndpoint, withEndpoint, withRequest, withResponseMethods inherited from class org.citrusframework.generate.xml.XmlTestGenerator
getJavaTestGenerator, getMarshaller, getMode, getSrcDirectory, getTemplateFilePath, getTemplateProperties, setMarshaller, setMode, withModeMethods inherited from class org.citrusframework.generate.AbstractTestGenerator
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, withNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.generate.TestGenerator
getAuthor, getDescription, getFramework, getMode, getName, getTargetPackage, isDisabled, usePackage, useSrcDirectory, withAuthor, withDescription, withDisabled, withFramework, withMode, withNameMethods inherited from interface org.citrusframework.generate.WsdlTestGenerator
withEndpoint
-
Constructor Details
-
WsdlXmlTestGenerator
public WsdlXmlTestGenerator()
-
-
Method Details
-
create
public void create()Description copied from class:AbstractTemplateBasedTestGeneratorCreate the test case.- Specified by:
createin interfaceTestGenerator<WsdlXmlTestGenerator>- Overrides:
createin classXmlTestGenerator<WsdlXmlTestGenerator>
-
getMarshallerContextPaths
Description copied from class:XmlTestGeneratorMarshaller context paths. Subclasses may add additional packages.- Overrides:
getMarshallerContextPathsin classXmlTestGenerator<WsdlXmlTestGenerator>- Returns:
-
getMarshallerSchemas
Description copied from class:XmlTestGeneratorMarshaller schema. Subclasses may overwrite schema or set to null to disable schema validation of marshalled data.- Overrides:
getMarshallerSchemasin classXmlTestGenerator<WsdlXmlTestGenerator>- Returns:
-
generateInboundMessage
Description copied from class:MessagingXmlTestGeneratorInbound message generation hook for subclasses.- Overrides:
generateInboundMessagein classMessagingXmlTestGenerator<WsdlXmlTestGenerator>- Returns:
-
generateOutboundMessage
Description copied from class:MessagingXmlTestGeneratorOutbound message generation hook for subclasses.- Overrides:
generateOutboundMessagein classMessagingXmlTestGenerator<WsdlXmlTestGenerator>- Returns:
-
withWsdl
Set the wsdl schema resource to use.- Specified by:
withWsdlin interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Parameters:
wsdlResource-- Returns:
-
withNameSuffix
Set the test name suffix to use.- Specified by:
withNameSuffixin interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Parameters:
suffix-- Returns:
-
withNamePrefix
Set the test name prefix to use.- Specified by:
withNamePrefixin interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Parameters:
prefix-- Returns:
-
withOperation
Set the wsdl operation to use.- Specified by:
withOperationin interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Parameters:
operation-- Returns:
-
withInboundMappings
Add inbound XPath expression mappings to manipulate inbound message content.- Specified by:
withInboundMappingsin interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Parameters:
mappings-- Returns:
-
withOutboundMappings
Add outbound XPath expression mappings to manipulate outbound message content.- Specified by:
withOutboundMappingsin interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Parameters:
mappings-- Returns:
-
withInboundMappingFile
Add inbound XPath expression mappings file to manipulate inbound message content.- Specified by:
withInboundMappingFilein interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Parameters:
mappingFile-- Returns:
-
withOutboundMappingFile
Add outbound XPath expression mappings file to manipulate outbound message content.- Specified by:
withOutboundMappingFilein interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Parameters:
mappingFile-- Returns:
-
setWsdl
Sets the wsdl.- Parameters:
wsdl-
-
getWsdl
Gets the wsdl.- Specified by:
getWsdlin interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Returns:
-
setNameSuffix
Sets the nameSuffix.- Parameters:
nameSuffix-
-
getNameSuffix
Gets the nameSuffix.- Specified by:
getNameSuffixin interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Returns:
-
setNamePrefix
Sets the namePrefix.- Parameters:
namePrefix-
-
getNamePrefix
Gets the namePrefix.- Returns:
-
setOperation
Sets the operation.- Parameters:
operation-
-
getOperation
Gets the operation.- Specified by:
getOperationin interfaceWsdlTestGenerator<WsdlXmlTestGenerator>- Returns:
-