public class Assert extends AbstractActionContainer
actions
description
Constructor and Description |
---|
Assert()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Assert |
addTestAction(TestAction action)
Adds a test action to the nested action list.
|
void |
doExecute(TestContext context)
Subclasses may add custom execution logic here.
|
TestAction |
getAction()
Gets the action.
|
Class<? extends Throwable> |
getException()
Gets the exception.
|
String |
getMessage()
Get the message to send.
|
TestAction |
getTestAction(int index)
Get the test action with given index in list.
|
void |
setAction(TestAction action)
Set the nested test action.
|
Assert |
setActions(List<TestAction> actions)
Sets the embedded test actions to execute within this container.
|
void |
setException(Class<? extends Throwable> exception)
Sets the exception.
|
void |
setMessage(String message)
Set the message to send.
|
getActionCount, getActionIndex, getActions, getLastExecutedAction, setLastExecutedAction
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getActor, getDescription, getName, isDisabled, setDescription, setName
public void doExecute(TestContext context)
AbstractTestAction
doExecute
in class AbstractTestAction
public void setAction(TestAction action)
action
- the action to setpublic TestAction getAction()
public void setMessage(String message)
message
- the message to setpublic String getMessage()
public Class<? extends Throwable> getException()
public void setException(Class<? extends Throwable> exception)
exception
- the exception to setpublic Assert addTestAction(TestAction action)
TestActionContainer
addTestAction
in interface TestActionContainer
addTestAction
in class AbstractActionContainer
public TestAction getTestAction(int index)
TestActionContainer
getTestAction
in interface TestActionContainer
getTestAction
in class AbstractActionContainer
public Assert setActions(List<TestAction> actions)
TestActionContainer
setActions
in interface TestActionContainer
setActions
in class AbstractActionContainer
Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.