|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sourceforge.groboutils.junit.v1.SubTestTestCase
net.sourceforge.groboutils.junit.v1.IntegrationTestCase
A TestCase specific for Integration tests. It has the additional functionality of soft validation through the AssertTestFactory class.
| 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 |
public IntegrationTestCase(java.lang.String name)
name - the name of the test case.| Method Detail |
public void softAssertTrue(java.lang.String message,
boolean condition)
message - text reported during failure.condition - must be true or an exception is raised.public void softAssertTrue(boolean condition)
condition - must be true or an exception is raised.
public void softAssertFalse(java.lang.String message,
boolean condition)
message - text reported during failure.condition - must be false or an exception is raised.public void softAssertFalse(boolean condition)
condition - must be false or an exception is raised.public void softFail(java.lang.String message)
message - text reported during failure.public void softFail()
public void softAssertEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(java.lang.Object expected,
java.lang.Object actual)
expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(java.lang.String message,
java.lang.String expected,
java.lang.String actual)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(java.lang.String expected,
java.lang.String actual)
expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(java.lang.String message,
double expected,
double actual,
double delta)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.delta - Description of the Parameter
public void softAssertEquals(double expected,
double actual,
double delta)
expected - value expected from the test.actual - actual value generated by the test.delta - Description of the Parameter
public void softAssertEquals(java.lang.String message,
float expected,
float actual,
float delta)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.delta - Description of the Parameter
public void softAssertEquals(float expected,
float actual,
float delta)
expected - value expected from the test.actual - actual value generated by the test.delta - Description of the Parameter
public void softAssertEquals(java.lang.String message,
long expected,
long actual)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(long expected,
long actual)
expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(java.lang.String message,
boolean expected,
boolean actual)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(boolean expected,
boolean actual)
expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(java.lang.String message,
byte expected,
byte actual)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(byte expected,
byte actual)
expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(java.lang.String message,
char expected,
char actual)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(char expected,
char actual)
expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(java.lang.String message,
short expected,
short actual)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(short expected,
short actual)
expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(java.lang.String message,
int expected,
int actual)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.
public void softAssertEquals(int expected,
int actual)
expected - value expected from the test.actual - actual value generated by the test.
public void softAssertNotNull(java.lang.String message,
java.lang.Object object)
message - text reported during failure.object - Description of the Parameterpublic void softAssertNotNull(java.lang.Object object)
object - Description of the Parameter
public void softAssertNull(java.lang.String message,
java.lang.Object object)
message - text reported during failure.object - Description of the Parameterpublic void softAssertNull(java.lang.Object object)
object - Description of the Parameter
public void softAssertSame(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.
public void softAssertSame(java.lang.Object expected,
java.lang.Object actual)
expected - value expected from the test.actual - actual value generated by the test.
public void softAssertNotSame(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
message - text reported during failure.expected - value expected from the test.actual - actual value generated by the test.
public void softAssertNotSame(java.lang.Object expected,
java.lang.Object actual)
expected - value expected from the test.actual - actual value generated by the test.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||