org.assertj.core.condition
Class DoesNotHave<T>

java.lang.Object
  extended by org.assertj.core.api.Condition<T>
      extended by org.assertj.core.condition.Negative<T>
          extended by org.assertj.core.condition.DoesNotHave<T>
All Implemented Interfaces:
Descriptable<Condition<T>>

public class DoesNotHave<T>
extends Negative<T>

Returns true if the condition is not satisfied.

Author:
Nicolas François, Joel Costigliola, Mikhail Mazursky

Method Summary
static
<T> DoesNotHave<T>
doesNotHave(Condition<? super T> condition)
          Creates a new DoesNotHave.
 String toString()
           
 
Methods inherited from class org.assertj.core.condition.Negative
matches
 
Methods inherited from class org.assertj.core.api.Condition
as, as, describedAs, describedAs, description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

doesNotHave

public static <T> DoesNotHave<T> doesNotHave(Condition<? super T> condition)
Creates a new DoesNotHave.

Parameters:
condition - the condition to inverse.
Returns:
The Not condition created.

toString

public String toString()
Overrides:
toString in class Condition<T>


Copyright © 2013–2015 AssertJ. All rights reserved.