public class MessagingJavaTestGenerator<T extends MessagingJavaTestGenerator> extends JavaDslTestGenerator<T>
TestGenerator.GeneratorModelog, self| Constructor and Description |
|---|
MessagingJavaTestGenerator() |
| Modifier and Type | Method and Description |
|---|---|
T |
addRequestHeader(String name,
Object value)
Adds a request header to use.
|
T |
addResponseHeader(String name,
Object value)
Adds a response header to use.
|
protected Message |
generateInboundMessage(Message message)
Inbound message generation hook for subclasses.
|
protected Message |
generateOutboundMessage(Message message)
Outbound message generation hook for subclasses.
|
protected List<com.squareup.javapoet.CodeBlock> |
getActions()
List of test actions to be added as code to the method body section of the test.
|
String |
getEndpoint()
Gets the endpoint.
|
protected <M extends Message> |
getReceiveRequestCodeProvider(M message) |
protected <M extends Message> |
getReceiveResponseCodeProvider(M message) |
protected <M extends Message> |
getSendRequestCodeProvider(M message) |
protected <M extends Message> |
getSendResponseCodeProvider(M message) |
void |
setEndpoint(String endpoint)
Sets the endpoint.
|
T |
withEndpoint(String endpoint)
Set the endpoint to use.
|
T |
withRequest(Message request)
Set the request to use.
|
T |
withResponse(Message response)
Set the response to use.
|
getBaseExtension, getBaseType, getCitrusAnnotationcreate, getMode, getSrcDirectory, setMode, withModegetAuthor, 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, withNameprotected List<com.squareup.javapoet.CodeBlock> getActions()
JavaTestGeneratorgetActions in class JavaDslTestGenerator<T extends MessagingJavaTestGenerator>protected Message generateInboundMessage(Message message)
message - protected Message generateOutboundMessage(Message message)
message - protected <M extends Message> CodeProvider<M> getSendRequestCodeProvider(M message)
protected <M extends Message> CodeProvider<M> getReceiveResponseCodeProvider(M message)
protected <M extends Message> CodeProvider<M> getSendResponseCodeProvider(M message)
protected <M extends Message> CodeProvider<M> getReceiveRequestCodeProvider(M message)
public T withEndpoint(String endpoint)
endpoint - public T withRequest(Message request)
request - public T withResponse(Message response)
response - public T addRequestHeader(String name, Object value)
name - value - public T addResponseHeader(String name, Object value)
name - value - public void setEndpoint(String endpoint)
endpoint - public String getEndpoint()
Copyright © 2008–2019 ConSol Software GmbH. All rights reserved.