org.jcoderz.commons.util
Class AssertTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jcoderz.commons.util.AssertTest
All Implemented Interfaces:
Test

public class AssertTest
extends TestCase

Class to test the Assert utility class.

Author:
Andreas Mandel

Constructor Summary
AssertTest()
           
 
Method Summary
 void testAssertEqualsInts()
          Tests the method Assert.assertEquals(String, int, int).
 void testAssertEqualsObjects()
          Tests the method Assert.assertEquals(String, Object, Object).
 void testAssertTrue()
          Tests the method Assert.assertTrue(String, boolean).
 void testFail()
          Test the not fail method.
 void testNotNullNegative()
          Test the not null method (negative).
 void testNotNullPositive()
          Test the not null method (positive).
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertTest

public AssertTest()
Method Detail

testNotNullPositive

public final void testNotNullPositive()
Test the not null method (positive).


testNotNullNegative

public final void testNotNullNegative()
Test the not null method (negative).


testFail

public final void testFail()
Test the not fail method.


testAssertTrue

public void testAssertTrue()
Tests the method Assert.assertTrue(String, boolean).


testAssertEqualsObjects

public void testAssertEqualsObjects()
Tests the method Assert.assertEquals(String, Object, Object).


testAssertEqualsInts

public void testAssertEqualsInts()
Tests the method Assert.assertEquals(String, int, int).



Copyright 2007 The jCoderZ Project.