org.uispec4j.assertion
Class Assertion

java.lang.Object
  extended by org.uispec4j.assertion.Assertion

public abstract class Assertion
extends java.lang.Object

Interface used for defining conditions. These assertions are meant to be used essentially with the {@link UISpecAssert] "assertXxx" and "waitUntil" methods.


Constructor Summary
Assertion()
           
 
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
 

Constructor Detail

Assertion

public Assertion()
Method Detail

isTrue

public final boolean isTrue()
Returns true if the check() method does not fail.


check

public abstract void check()
Throws an exception if the condition is not true.



Copyright © 2004-2010. All Rights Reserved.