net.sourceforge.groboutils.junit.v1
Class IntegrationTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bynet.sourceforge.groboutils.junit.v1.SubTestTestCase
              extended bynet.sourceforge.groboutils.junit.v1.IntegrationTestCase
All Implemented Interfaces:
junit.framework.Test

public class IntegrationTestCase
extends SubTestTestCase

A TestCase specific for Integration tests. It has the additional functionality of soft validation through the AssertTestFactory class.

Since:
March 28, 2002
Version:
$Date: 2003/05/05 05:45:37 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Constructor Summary
IntegrationTestCase(java.lang.String name)
          Standard JUnit format for test constructors (pre JUnit 3.8).
 
Method Summary
 void softAssertEquals(boolean expected, boolean actual)
          Asserts that two booleans are equal.
 void softAssertEquals(byte expected, byte actual)
          Asserts that two bytes are equal.
 void softAssertEquals(char expected, char actual)
          Asserts that two chars are equal.
 void softAssertEquals(double expected, double actual, double delta)
          Asserts that two doubles are equal concerning a delta.
 void softAssertEquals(float expected, float actual, float delta)
          Asserts that two floats are equal concerning a delta.
 void softAssertEquals(int expected, int actual)
          Asserts that two ints are equal.
 void softAssertEquals(long expected, long actual)
          Asserts that two longs are equal.
 void softAssertEquals(java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects are equal.
 void softAssertEquals(short expected, short actual)
          Asserts that two shorts are equal.
 void softAssertEquals(java.lang.String message, boolean expected, boolean actual)
          Asserts that two booleans are equal.
 void softAssertEquals(java.lang.String message, byte expected, byte actual)
          Asserts that two bytes are equal.
 void softAssertEquals(java.lang.String message, char expected, char actual)
          Asserts that two chars are equal.
 void softAssertEquals(java.lang.String message, double expected, double actual, double delta)
          Asserts that two doubles are equal concerning a delta.
 void softAssertEquals(java.lang.String message, float expected, float actual, float delta)
          Asserts that two floats are equal concerning a delta.
 void softAssertEquals(java.lang.String message, int expected, int actual)
          Asserts that two ints are equal.
 void softAssertEquals(java.lang.String message, long expected, long actual)
          Asserts that two longs are equal.
 void softAssertEquals(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects are equal (.equals()).
 void softAssertEquals(java.lang.String message, short expected, short actual)
          Asserts that two shorts are equal.
 void softAssertEquals(java.lang.String expected, java.lang.String actual)
          Asserts that two objects are equal.
 void softAssertEquals(java.lang.String message, java.lang.String expected, java.lang.String actual)
          Asserts that two objects are equal.
 void softAssertFalse(boolean condition)
          Asserts that a condition is false.
 void softAssertFalse(java.lang.String message, boolean condition)
          Asserts that a condtion is false.
 void softAssertNotNull(java.lang.Object object)
          Asserts that an object isn't null.
 void softAssertNotNull(java.lang.String message, java.lang.Object object)
          Asserts that an object isn't null.
 void softAssertNotSame(java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects refer to the same object.
 void softAssertNotSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects refer to the same object.
 void softAssertNull(java.lang.Object object)
          Asserts that an object is null.
 void softAssertNull(java.lang.String message, java.lang.Object object)
          Asserts that an object is null.
 void softAssertSame(java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects refer to the same object.
 void softAssertSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects refer to the same object.
 void softAssertTrue(boolean condition)
          Asserts that a condition is true.
 void softAssertTrue(java.lang.String message, boolean condition)
          Asserts that a condtion is true.
 void softFail()
          Fails a test with no message.
 void softFail(java.lang.String message)
          Fails a test with the given message.
 
Methods inherited from class net.sourceforge.groboutils.junit.v1.SubTestTestCase
addSubTest, run
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegrationTestCase

public IntegrationTestCase(java.lang.String name)
Standard JUnit format for test constructors (pre JUnit 3.8).

Parameters:
name - the name of the test case.
Method Detail

softAssertTrue

public void softAssertTrue(java.lang.String message,
                           boolean condition)
Asserts that a condtion is true. If it isn't it throws an AssertionFailedError.

Parameters:
message - text reported during failure.
condition - must be true or an exception is raised.

softAssertTrue

public void softAssertTrue(boolean condition)
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.

Parameters:
condition - must be true or an exception is raised.

softAssertFalse

public void softAssertFalse(java.lang.String message,
                            boolean condition)
Asserts that a condtion is false. If it isn't it throws an AssertionFailedError.

Parameters:
message - text reported during failure.
condition - must be false or an exception is raised.
Since:
03-Nov-2002

softAssertFalse

public void softAssertFalse(boolean condition)
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.

Parameters:
condition - must be false or an exception is raised.
Since:
03-Nov-2002

softFail

public void softFail(java.lang.String message)
Fails a test with the given message.

Parameters:
message - text reported during failure.

softFail

public void softFail()
Fails a test with no message.


softAssertEquals

public void softAssertEquals(java.lang.String message,
                             java.lang.Object expected,
                             java.lang.Object actual)
Asserts that two objects are equal (.equals()). If they are not an AssertionFailedError is thrown.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(java.lang.Object expected,
                             java.lang.Object actual)
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(java.lang.String message,
                             java.lang.String expected,
                             java.lang.String actual)
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.
Since:
03-Nov-2002

softAssertEquals

public void softAssertEquals(java.lang.String expected,
                             java.lang.String actual)
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.
Since:
03-Nov-2002

softAssertEquals

public void softAssertEquals(java.lang.String message,
                             double expected,
                             double actual,
                             double delta)
Asserts that two doubles are equal concerning a delta. If the expected value is infinity then the delta value is ignored.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.
delta - Description of the Parameter

softAssertEquals

public void softAssertEquals(double expected,
                             double actual,
                             double delta)
Asserts that two doubles are equal concerning a delta. If the expected value is infinity then the delta value is ignored.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.
delta - Description of the Parameter

softAssertEquals

public void softAssertEquals(java.lang.String message,
                             float expected,
                             float actual,
                             float delta)
Asserts that two floats are equal concerning a delta. If the expected value is infinity then the delta value is ignored.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.
delta - Description of the Parameter

softAssertEquals

public void softAssertEquals(float expected,
                             float actual,
                             float delta)
Asserts that two floats are equal concerning a delta. If the expected value is infinity then the delta value is ignored.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.
delta - Description of the Parameter

softAssertEquals

public void softAssertEquals(java.lang.String message,
                             long expected,
                             long actual)
Asserts that two longs are equal.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(long expected,
                             long actual)
Asserts that two longs are equal.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(java.lang.String message,
                             boolean expected,
                             boolean actual)
Asserts that two booleans are equal.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(boolean expected,
                             boolean actual)
Asserts that two booleans are equal.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(java.lang.String message,
                             byte expected,
                             byte actual)
Asserts that two bytes are equal.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(byte expected,
                             byte actual)
Asserts that two bytes are equal.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(java.lang.String message,
                             char expected,
                             char actual)
Asserts that two chars are equal.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(char expected,
                             char actual)
Asserts that two chars are equal.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(java.lang.String message,
                             short expected,
                             short actual)
Asserts that two shorts are equal.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(short expected,
                             short actual)
Asserts that two shorts are equal.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(java.lang.String message,
                             int expected,
                             int actual)
Asserts that two ints are equal.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.

softAssertEquals

public void softAssertEquals(int expected,
                             int actual)
Asserts that two ints are equal.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.

softAssertNotNull

public void softAssertNotNull(java.lang.String message,
                              java.lang.Object object)
Asserts that an object isn't null.

Parameters:
message - text reported during failure.
object - Description of the Parameter

softAssertNotNull

public void softAssertNotNull(java.lang.Object object)
Asserts that an object isn't null.

Parameters:
object - Description of the Parameter

softAssertNull

public void softAssertNull(java.lang.String message,
                           java.lang.Object object)
Asserts that an object is null.

Parameters:
message - text reported during failure.
object - Description of the Parameter

softAssertNull

public void softAssertNull(java.lang.Object object)
Asserts that an object is null.

Parameters:
object - Description of the Parameter

softAssertSame

public void softAssertSame(java.lang.String message,
                           java.lang.Object expected,
                           java.lang.Object actual)
Asserts that two objects refer to the same object. If they are not an AssertionFailedError is thrown.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.

softAssertSame

public void softAssertSame(java.lang.Object expected,
                           java.lang.Object actual)
Asserts that two objects refer to the same object. If they are not the same an AssertionFailedError is thrown.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.

softAssertNotSame

public void softAssertNotSame(java.lang.String message,
                              java.lang.Object expected,
                              java.lang.Object actual)
Asserts that two objects refer to the same object. If they are not an AssertionFailedError is thrown.

Parameters:
message - text reported during failure.
expected - value expected from the test.
actual - actual value generated by the test.
Since:
03-Nov-2002

softAssertNotSame

public void softAssertNotSame(java.lang.Object expected,
                              java.lang.Object actual)
Asserts that two objects refer to the same object. If they are not the same an AssertionFailedError is thrown.

Parameters:
expected - value expected from the test.
actual - actual value generated by the test.
Since:
03-Nov-2002


Copyright © 2001-2003 by The GroboUtils Project