org.fest.assertions.condition
Class Negative<T>

java.lang.Object
  extended by org.fest.assertions.core.Condition<T>
      extended by org.fest.assertions.condition.Negative<T>
All Implemented Interfaces:
Descriptable<Condition<T>>
Direct Known Subclasses:
DoesNotHave, Not

public abstract class Negative<T>
extends Condition<T>

Inverse the condition.

Author:
Nicolas François

Constructor Summary
protected Negative(Condition<T> condition)
           
 
Method Summary
 boolean matches(T value)
          Verifies that the given value satisfies this condition.
 
Methods inherited from class org.fest.assertions.core.Condition
as, as, describedAs, describedAs, description, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Negative

protected Negative(Condition<T> condition)
Method Detail

matches

public boolean matches(T value)
Description copied from class: Condition
Verifies that the given value satisfies this condition.

Specified by:
matches in class Condition<T>
Parameters:
value - the value to verify.
Returns:
true if the given value satisfies this condition; false otherwise.


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.