org.uispec4j.assertion
Class Assertion
java.lang.Object
org.uispec4j.assertion.Assertion
- public abstract class Assertion
- extends Object
Interface used for defining conditions. These assertions are meant to be used
essentially with the {@link UISpecAssert] "assertXxx" and "waitUntil" methods.
|
Method Summary |
abstract void |
check()
Throws an exception if the condition is not true. |
boolean |
isTrue()
Returns true if the check() method does not fail. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Assertion
public Assertion()
isTrue
public final boolean isTrue()
- Returns true if the
check() method does not fail.
check
public abstract void check()
throws Exception
- Throws an exception if the condition is not true.
- Throws:
Exception
Copyright © 2004-2007 Design-up. All Rights Reserved.