jdave
Class Not<A>

java.lang.Object
  extended by jdave.ContainmentSupport
      extended by jdave.Not<A>

public class Not<A>
extends ContainmentSupport

Author:
Pekka Enberg

Field Summary
 A be
           
 
Constructor Summary
Not(Specification<A> specification)
           
 
Method Summary
 IEqualityCheck equal(java.lang.Number expectedNumber, double delta)
           
 IEqualityCheck equal(java.lang.Object obj)
           
protected
<T> IContainment
newAllContainment(java.util.Collection<T> elements)
           
protected
<T> IContainment
newAllContainment(java.lang.Iterable<T> elements)
           
protected
<T> IContainment
newAllContainment(java.util.Iterator<T> elements)
           
protected
<T> IContainment
newAnyContainment(java.util.Collection<T> elements)
           
protected
<T> IContainment
newAnyContainment(java.lang.Iterable<T> elements)
           
protected
<T> IContainment
newAnyContainment(java.util.Iterator<T> elements)
           
protected
<T> IContainment
newExactContainment(java.util.Collection<T> elements)
           
protected
<T> IContainment
newExactContainment(java.lang.Iterable<T> elements)
           
protected
<T> IContainment
newExactContainment(java.util.Iterator<T> elements)
           
protected
<T> IContainment
newInOrderContainment(java.util.Collection<T> elements)
           
protected
<T> IContainment
newInOrderContainment(java.lang.Iterable<T> elements)
           
protected
<T> IContainment
newInOrderContainment(java.util.Iterator<T> elements)
           
protected
<T> IContainment
newInPartialOrderContainment(java.util.Collection<T> elements)
           
protected
<T> IContainment
newInPartialOrderContainment(java.lang.Iterable<T> elements)
           
protected
<T> IContainment
newInPartialOrderContainment(java.util.Iterator<T> elements)
           
protected  IContainment newObjectContainment(java.lang.Object object)
           
<E extends java.lang.Throwable>
ExpectedNoThrow<E>
raise(java.lang.Class<E> expected)
           
<E extends java.lang.Throwable>
ExpectedNoThrow<E>
raise(java.lang.Class<E> expectedType, java.lang.String expectedMessage)
           
<E extends java.lang.Throwable>
ExpectedNoThrow<E>
raiseAnyException()
          No exception is expected from Block.
<E extends java.lang.Throwable>
ExpectedNoThrow<E>
raiseExactly(java.lang.Class<E> expected)
           
 IContract satisfy(IContract contract)
           
 
Methods inherited from class jdave.ContainmentSupport
contain, containAll, containAll, containAll, containAll, containAll, containAll, containAll, containAll, containAll, containAll, containAny, containAny, containAny, containAny, containAny, containAny, containAny, containAny, containAny, containAny, containExactly, containExactly, containExactly, containExactly, containExactly, containExactly, containExactly, containExactly, containExactly, containExactly, containInOrder, containInOrder, containInOrder, containInOrder, containInOrder, containInOrder, containInOrder, containInOrder, containInOrder, containInOrder, containInPartialOrder, containInPartialOrder, containInPartialOrder, containInPartialOrder, containInPartialOrder, containInPartialOrder, containInPartialOrder, containInPartialOrder, containInPartialOrder, containInPartialOrder, contains, containsAll, containsAll, containsAll, containsAll, containsAll, containsAll, containsAll, containsAll, containsAll, containsAll, containsAny, containsAny, containsAny, containsAny, containsAny, containsAny, containsAny, containsAny, containsAny, containsAny, containsExactly, containsExactly, containsExactly, containsExactly, containsExactly, containsExactly, containsExactly, containsExactly, containsExactly, containsExactly, containsInOrder, containsInOrder, containsInOrder, containsInOrder, containsInOrder, containsInOrder, containsInOrder, containsInOrder, containsInOrder, containsInOrder, containsInPartialOrder, containsInPartialOrder, containsInPartialOrder, containsInPartialOrder, containsInPartialOrder, containsInPartialOrder, containsInPartialOrder, containsInPartialOrder, containsInPartialOrder, containsInPartialOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

be

public A be
Constructor Detail

Not

public Not(Specification<A> specification)
Method Detail

newAllContainment

protected <T> IContainment newAllContainment(java.util.Collection<T> elements)
Overrides:
newAllContainment in class ContainmentSupport

newAllContainment

protected <T> IContainment newAllContainment(java.lang.Iterable<T> elements)
Overrides:
newAllContainment in class ContainmentSupport

newAllContainment

protected <T> IContainment newAllContainment(java.util.Iterator<T> elements)
Overrides:
newAllContainment in class ContainmentSupport

newAnyContainment

protected <T> IContainment newAnyContainment(java.util.Collection<T> elements)
Overrides:
newAnyContainment in class ContainmentSupport

newAnyContainment

protected <T> IContainment newAnyContainment(java.lang.Iterable<T> elements)
Overrides:
newAnyContainment in class ContainmentSupport

newAnyContainment

protected <T> IContainment newAnyContainment(java.util.Iterator<T> elements)
Overrides:
newAnyContainment in class ContainmentSupport

newExactContainment

protected <T> IContainment newExactContainment(java.util.Collection<T> elements)
Overrides:
newExactContainment in class ContainmentSupport

newExactContainment

protected <T> IContainment newExactContainment(java.lang.Iterable<T> elements)
Overrides:
newExactContainment in class ContainmentSupport

newExactContainment

protected <T> IContainment newExactContainment(java.util.Iterator<T> elements)
Overrides:
newExactContainment in class ContainmentSupport

newInOrderContainment

protected <T> IContainment newInOrderContainment(java.util.Collection<T> elements)
Overrides:
newInOrderContainment in class ContainmentSupport

newInOrderContainment

protected <T> IContainment newInOrderContainment(java.lang.Iterable<T> elements)
Overrides:
newInOrderContainment in class ContainmentSupport

newInOrderContainment

protected <T> IContainment newInOrderContainment(java.util.Iterator<T> elements)
Overrides:
newInOrderContainment in class ContainmentSupport

newInPartialOrderContainment

protected <T> IContainment newInPartialOrderContainment(java.util.Collection<T> elements)
Overrides:
newInPartialOrderContainment in class ContainmentSupport

newInPartialOrderContainment

protected <T> IContainment newInPartialOrderContainment(java.lang.Iterable<T> elements)
Overrides:
newInPartialOrderContainment in class ContainmentSupport

newInPartialOrderContainment

protected <T> IContainment newInPartialOrderContainment(java.util.Iterator<T> elements)
Overrides:
newInPartialOrderContainment in class ContainmentSupport

newObjectContainment

protected IContainment newObjectContainment(java.lang.Object object)
Overrides:
newObjectContainment in class ContainmentSupport

raise

public <E extends java.lang.Throwable> ExpectedNoThrow<E> raise(java.lang.Class<E> expected)

raiseAnyException

public <E extends java.lang.Throwable> ExpectedNoThrow<E> raiseAnyException()
No exception is expected from Block.

See Also:
Specification.specify(Block, ExpectedNoThrow)

raise

public <E extends java.lang.Throwable> ExpectedNoThrow<E> raise(java.lang.Class<E> expectedType,
                                                                java.lang.String expectedMessage)

raiseExactly

public <E extends java.lang.Throwable> ExpectedNoThrow<E> raiseExactly(java.lang.Class<E> expected)

equal

public IEqualityCheck equal(java.lang.Object obj)

equal

public IEqualityCheck equal(java.lang.Number expectedNumber,
                            double delta)

satisfy

public IContract satisfy(IContract contract)


Copyright © 2008. All Rights Reserved.