com.tngtech.jgiven.impl.util
Class AssertionUtil

java.lang.Object
  extended by com.tngtech.jgiven.impl.util.AssertionUtil

public class AssertionUtil
extends Object

A collection of methods to assert certain conditions. If an asserted condition is false a JGivenInternalDefectException is thrown.


Constructor Summary
AssertionUtil()
           
 
Method Summary
static void assertNotNull(Object o)
           
static void assertNotNull(Object o, String msg)
           
static void assertTrue(boolean condition, String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertionUtil

public AssertionUtil()
Method Detail

assertNotNull

public static void assertNotNull(Object o)

assertNotNull

public static void assertNotNull(Object o,
                                 String msg)

assertTrue

public static void assertTrue(boolean condition,
                              String msg)


Copyright © 2014 TNG Technology Consulting. All rights reserved.