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(Number expectedNumber, double delta)
           
 IEqualityCheck equal(Object obj)
           
protected
<T> IContainment<T>
newAllContainment(Collection<T> elements)
           
protected
<T> IContainment<T>
newAllContainment(Iterable<T> elements)
           
protected
<T> IContainment<T>
newAllContainment(Iterator<T> elements)
           
protected
<T> IContainment<T>
newAnyContainment(Collection<T> elements)
           
protected
<T> IContainment<T>
newAnyContainment(Iterable<T> elements)
           
protected
<T> IContainment<T>
newAnyContainment(Iterator<T> elements)
           
protected
<T> IContainment<T>
newExactContainment(Collection<T> elements)
           
protected
<T> IContainment<T>
newExactContainment(Iterable<T> elements)
           
protected
<T> IContainment<T>
newExactContainment(Iterator<T> elements)
           
protected
<T> IContainment<T>
newInOrderContainment(Collection<T> elements)
           
protected
<T> IContainment<T>
newInOrderContainment(Iterable<T> elements)
           
protected
<T> IContainment<T>
newInOrderContainment(Iterator<T> elements)
           
protected
<T> IContainment<T>
newInPartialOrderContainment(Collection<T> elements)
           
protected
<T> IContainment<T>
newInPartialOrderContainment(Iterable<T> elements)
           
protected
<T> IContainment<T>
newInPartialOrderContainment(Iterator<T> elements)
           
protected
<T> IContainment<T>
newObjectContainment(T object)
           
<E extends Throwable>
ExpectedNoThrow<E>
raise(Class<E> expected)
           
<E extends Throwable>
ExpectedNoThrow<E>
raise(Class<E> expectedType, String expectedMessage)
           
 ExpectedNoThrow<Throwable> raiseAnyException()
          No exception is expected from Block.
<E extends Throwable>
ExpectedNoThrow<E>
raiseExactly(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(Collection<T> elements)
Overrides:
newAllContainment in class ContainmentSupport

newAllContainment

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

newAllContainment

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

newAnyContainment

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

newAnyContainment

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

newAnyContainment

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

newExactContainment

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

newExactContainment

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

newExactContainment

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

newInOrderContainment

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

newInOrderContainment

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

newInOrderContainment

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

newInPartialOrderContainment

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

newInPartialOrderContainment

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

newInPartialOrderContainment

protected <T> IContainment<T> newInPartialOrderContainment(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 Throwable> ExpectedNoThrow<E> raise(Class<E> expected)

raiseAnyException

public ExpectedNoThrow<Throwable> raiseAnyException()
No exception is expected from Block.

See Also:
Specification.specify(Block, ExpectedNoThrow)

raise

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

raiseExactly

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

equal

public IEqualityCheck equal(Object obj)

equal

public IEqualityCheck equal(Number expectedNumber,
                            double delta)

satisfy

public IContract satisfy(IContract contract)


Copyright © 2010. All Rights Reserved.