|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.junit.result.AssertResult
public class AssertResult
| Nested Class Summary | |
|---|---|
static class |
AssertResult.Test
|
| Constructor Summary | |
|---|---|
AssertResult()
|
|
| Method Summary | |
|---|---|
void |
check(int expectedCount)
Check that the current count is equals to the expected count and that throwable is null. |
void |
execute(AssertResult.Test test)
Run the test, record the error or failure if any and increment the count. |
void |
executeIfNotFailed(AssertResult.Test test)
Execute the test only if it the result is not failed. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssertResult()
| Method Detail |
|---|
public 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 a throwable has already been recorded previously
public void executeIfNotFailed(AssertResult.Test test)
throws java.lang.IllegalArgumentException
test - the test to execute
java.lang.IllegalArgumentException - if the test is nullpublic int getCount()
public java.lang.Throwable getThrowable()
public boolean isFailed()
public void check(int expectedCount)
throws java.lang.Throwable
junit.framework.AssertionFailedError - if the expected count is not equals to the effective count or the recorded
throwable is not null and is an AssertionFailedError
java.lang.Throwable - if the throwable is not null and is not an instance of AssertionFailedError
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||