|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.test.framework.container.result.Result
org.jboss.portal.test.framework.container.result.AssertResult
A set of assertions as result.
| Nested Class Summary | |
static class |
AssertResult.Test
|
| Field Summary | |
private static org.apache.log4j.Logger |
log
. |
private static long |
serialVersionUID
The serialVersionUID |
private java.lang.Throwable |
throwable
The throwable that failed this assertion. |
| Constructor Summary | |
AssertResult()
|
|
AssertResult(java.lang.Throwable t)
|
|
| Method Summary | |
ClientCommand |
createCommand()
Return the command to execute on the client side. |
void |
execute(AssertResult.Test test)
Run the test, record the error or failure if any and increment the count. |
java.lang.Throwable |
getThrowable()
Return the recorded throwable or null if nothing has been recorded. |
boolean |
isFailed()
Return true if throwable is null. |
static AssertResult |
run(AssertResult.Test test)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
private static org.apache.log4j.Logger log
private java.lang.Throwable throwable
| Constructor Detail |
public AssertResult()
public AssertResult(java.lang.Throwable t)
| Method Detail |
public static AssertResult run(AssertResult.Test test) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
java.lang.IllegalArgumentException
java.lang.IllegalStateExceptionpublic void execute(AssertResult.Test test) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
test - the test to execute
java.lang.IllegalArgumentException - if test is null
java.lang.IllegalStateException - if the test is already failedpublic java.lang.Throwable getThrowable()
public boolean isFailed()
public ClientCommand createCommand()
Result
createCommand in class Result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||