public class Assert extends AbstractActionContainer
actionsdescription| 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, setLastExecutedActionexecute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getActor, getDescription, getName, isDisabled, setDescription, setNamepublic void doExecute(TestContext context)
AbstractTestActiondoExecute in class AbstractTestActionpublic 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)
TestActionContaineraddTestAction in interface TestActionContaineraddTestAction in class AbstractActionContainerpublic TestAction getTestAction(int index)
TestActionContainergetTestAction in interface TestActionContainergetTestAction in class AbstractActionContainerpublic Assert setActions(List<TestAction> actions)
TestActionContainersetActions in interface TestActionContainersetActions in class AbstractActionContainerCopyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.