public class ZooActionBuilder extends AbstractTestActionBuilder<ZooExecuteAction>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ACL |
static String |
DEFAULT_MODE |
static int |
DEFAULT_VERSION |
action| Constructor and Description |
|---|
ZooActionBuilder()
Default constructor.
|
ZooActionBuilder(ZooExecuteAction action)
Constructor using action field.
|
| Modifier and Type | Method and Description |
|---|---|
GetChildren |
children(String path)
Adds an exists command.
|
ZooActionBuilder |
client(ZooClient zooClient)
Use a custom zoo client.
|
Create |
create(String path,
String data)
Adds a create command.
|
Delete |
delete(String path)
Adds a delete command.
|
Exists |
exists(String path)
Adds an exists command.
|
ZooActionBuilder |
extract(String jsonPath,
String variableName)
Adds variable extractor for extracting variable from command response.
|
GetData |
get(String path)
Adds a get-data command.
|
Info |
info()
Use an info command.
|
ZooActionBuilder |
result(String result)
Adds expected command result.
|
SetData |
set(String path,
String data)
Adds a set-data command.
|
ZooActionBuilder |
validate(String jsonPath,
String expectedValue)
Adds variable extractor for extracting variable from command response.
|
ZooActionBuilder |
withApplicationContext(org.springframework.context.ApplicationContext ctx)
Sets the Spring bean application context.
|
actor, build, description, execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setNamepublic static final String DEFAULT_MODE
public static final String DEFAULT_ACL
public static final int DEFAULT_VERSION
public ZooActionBuilder(ZooExecuteAction action)
action - public ZooActionBuilder()
public ZooActionBuilder client(ZooClient zooClient)
public GetChildren children(String path)
public Info info()
public ZooActionBuilder result(String result)
result - public ZooActionBuilder extract(String jsonPath, String variableName)
jsonPath - the json path to reference the value to be extractedvariableName - the name of the variable to store the extracted value inpublic ZooActionBuilder validate(String jsonPath, String expectedValue)
jsonPath - the json path to reference the value to be extractedexpectedValue - the expected value (or variable to retrieve the expected value from)public ZooActionBuilder withApplicationContext(org.springframework.context.ApplicationContext ctx)
ctx - Copyright © 2008–2019 ConSol Software GmbH. All rights reserved.