|
||||||||||
| 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
|
| 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. |
int |
getCount()
Return how many times the execute method has been successfully invoked. |
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 |
| 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 int getCount()
public 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 | |||||||||