org.jnario.lib
Class Assert

java.lang.Object
  extended by org.jnario.lib.Assert

public class Assert
extends Object


Constructor Summary
Assert()
           
 
Method Summary
static void assertFalse(String message, boolean condition)
          Asserts that a condition is false.
static void assertTrue(String message, boolean condition)
          Asserts that a condition is true.
static void fail(String message)
          Fails a test with the given message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assert

public Assert()
Method Detail

assertTrue

public static void assertTrue(String message,
                              boolean condition)
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.

Parameters:
message - the identifying message for the AssertionError (null okay)
condition - condition to be checked

assertFalse

public static void assertFalse(String message,
                               boolean condition)
Asserts that a condition is false. If it isn't it throws an AssertionError with the given message.

Parameters:
message - the identifying message for the AssertionError (null okay)
condition - condition to be checked

fail

public static void fail(String message)
Fails a test with the given message.

Parameters:
message - the identifying message for the AssertionError (null okay)
See Also:
AssertionError


Copyright © 2012-2013 BMW Car IT. All Rights Reserved.