org.openbandy.test
Class Assertion

java.lang.Object
  extended by org.openbandy.test.Assertion

public class Assertion
extends java.lang.Object

This class provides some static methods to assert conditions as equality or not null. In the case of failure, a log message will be written.

(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.

Version:
1.0
Author:
Philipp Bolliger (philipp@bolliger.name)

Constructor Summary
Assertion()
           
 
Method Summary
static boolean equal(int int1, int int2)
          Check the given int values to be equal.
static boolean notNull(java.lang.Object object)
          Check the given object reference for null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assertion

public Assertion()
Method Detail

notNull

public static boolean notNull(java.lang.Object object)
Check the given object reference for null.

Parameters:
object - Object reference to check.
Returns:
True if the object is NOT NULL.

equal

public static boolean equal(int int1,
                            int int2)
Check the given int values to be equal.

Parameters:
int1 - The first int to compare with.
int2 - The int to compare with int1.
Returns:
True if int1 is equal with int2.