org.jbehave.util
Class JUnit4Ensure

java.lang.Object
  extended by org.jbehave.util.JUnit4Ensure
Direct Known Subclasses:
Ensure

public class JUnit4Ensure
extends java.lang.Object

Collection of static utility ensure methods that use Hamcrest matchers with JUnit 4.

Author:
Elizabeth Keogh

Constructor Summary
JUnit4Ensure()
           
 
Method Summary
static void ensureThat(boolean matches)
           
static
<T> void
ensureThat(T actual, org.hamcrest.Matcher<T> matcher)
           
static boolean not(boolean matches)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnit4Ensure

public JUnit4Ensure()
Method Detail

ensureThat

public static void ensureThat(boolean matches)

ensureThat

public static <T> void ensureThat(T actual,
                                  org.hamcrest.Matcher<T> matcher)

not

public static boolean not(boolean matches)


Copyright © 2003-2008. All Rights Reserved.