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<T>
newAllContainment(java.util.Collection<T> elements)
           
protected
<T> IContainment<T>
newAllContainment(java.lang.Iterable<T> elements)
           
protected
<T> IContainment<T>
newAllContainment(java.util.Iterator<T> elements)
           
protected
<T> IContainment<T>
newAnyContainment(java.util.Collection<T> elements)
           
protected
<T> IContainment<T>
newAnyContainment(java.lang.Iterable<T> elements)
           
protected
<T> IContainment<T>
newAnyContainment(java.util.Iterator<T> elements)
           
protected
<T> IContainment<T>
newExactContainment(java.util.Collection<T> elements)
           
protected
<T> IContainment<T>
newExactContainment(java.lang.Iterable<T> elements)
           
protected
<T> IContainment<T>
newExactContainment(java.util.Iterator<T> elements)
           
protected
<T> IContainment<T>
newInOrderContainment(java.util.Collection<T> elements)
           
protected
<T> IContainment<T>
newInOrderContainment(java.lang.Iterable<T> elements)
           
protected
<T> IContainment<T>
newInOrderContainment(java.util.Iterator<T> elements)
           
protected
<T> IContainment<T>
newInPartialOrderContainment(java.util.Collection<T> elements)
           
protected
<T> IContainment<T>
newInPartialOrderContainment(java.lang.Iterable<T> elements)
           
protected
<T> IContainment<T>
newInPartialOrderContainment(java.util.Iterator<T> elements)
           
protected
<T> IContainment<T>
newObjectContainment(T 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)
           
 ExpectedNoThrow<java.lang.Throwable> 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<T> newAllContainment(java.util.Collection<T> elements)
Overrides:
newAllContainment in class ContainmentSupport

newAllContainment

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

newAllContainment

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

newAnyContainment

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

newAnyContainment

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

newAnyContainment

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

newExactContainment

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

newExactContainment

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

newExactContainment

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

newInOrderContainment

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

newInOrderContainment

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

newInOrderContainment

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

newInPartialOrderContainment

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

newInPartialOrderContainment

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

newInPartialOrderContainment

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

newObjectContainment

protected <T> IContainment<T> newObjectContainment(T object)
Overrides:
newObjectContainment in class ContainmentSupport

raise

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

raiseAnyException

public ExpectedNoThrow<java.lang.Throwable> 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 © 2009. All Rights Reserved.