|
JUnit-addons version 1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junitx.framework.Assert
A set of assert methods (primarly testing the negative assertion of the correspondent methods found in the junit.framework.Assert class).
import junitx.framework.Assert; Assert.assertNotEquals(expected, actual);
Method Summary | |
static void |
assertEquals(java.lang.String expected,
java.lang.String actual)
Asserts that two strings are equal. |
static void |
assertEquals(java.lang.String message,
java.lang.String expected,
java.lang.String actual)
Asserts that two strings are equal. |
static void |
assertFalse(boolean condition)
Asserts that a condition is false. |
static void |
assertFalse(java.lang.String message,
boolean condition)
Asserts that a condition is false. |
static void |
assertNotEquals(boolean expected,
boolean actual)
Asserts that two booleans are not equal. |
static void |
assertNotEquals(byte expected,
byte actual)
Asserts that two bytes are not equal. |
static void |
assertNotEquals(char expected,
char actual)
Asserts that two chars are not equal. |
static void |
assertNotEquals(double expected,
double actual,
double delta)
Asserts that two doubles are not equal concerning a delta. |
static void |
assertNotEquals(float expected,
float actual,
float delta)
Asserts that two floats are not equal concerning a delta. |
static void |
assertNotEquals(int expected,
int actual)
Asserts that two ints are not equal. |
static void |
assertNotEquals(long expected,
long actual)
Asserts that two longs are not equal. |
static void |
assertNotEquals(java.lang.Object expected,
java.lang.Object actual)
Asserts that two objects are not equal. |
static void |
assertNotEquals(short expected,
short actual)
Asserts that two shorts are not equal. |
static void |
assertNotEquals(java.lang.String message,
boolean expected,
boolean actual)
Asserts that two boolean are not equal. |
static void |
assertNotEquals(java.lang.String message,
byte expected,
byte actual)
Asserts that two bytes are not equal. |
static void |
assertNotEquals(java.lang.String message,
char expected,
char actual)
Asserts that two chars are not equal. |
static void |
assertNotEquals(java.lang.String message,
double expected,
double actual,
double delta)
Asserts that two doubles are not equal concerning a delta. |
static void |
assertNotEquals(java.lang.String message,
float expected,
float actual,
float delta)
Asserts that two floats are not equal concerning a delta. |
static void |
assertNotEquals(java.lang.String message,
int expected,
int actual)
Asserts that two ints are not equal. |
static void |
assertNotEquals(java.lang.String message,
long expected,
long actual)
Asserts that longs objects are not equal. |
static void |
assertNotEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Asserts that two objects are not equal. |
static void |
assertNotEquals(java.lang.String message,
short expected,
short actual)
Asserts that two shorts are not equal. |
static void |
assertNotSame(java.lang.Object expected,
java.lang.Object actual)
Asserts that two objects do not refer to the same object. |
static void |
assertNotSame(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Asserts that two objects do not refer to the same object. |
static void |
fail(java.lang.String message,
java.lang.Throwable cause)
Fails a test with the given message and the Throwable object causing the failure. |
static void |
fail(java.lang.Throwable cause)
Fails a test with the given Throwable object causing the failure. |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void assertFalse(java.lang.String message, boolean condition)
ComparisonFailure
public static void assertFalse(boolean condition)
ComparisonFailure
public static void assertEquals(java.lang.String expected, java.lang.String actual)
public static void assertEquals(java.lang.String message, java.lang.String expected, java.lang.String actual)
public static void assertNotEquals(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
public static void assertNotEquals(java.lang.Object expected, java.lang.Object actual)
public static void assertNotEquals(java.lang.String message, byte expected, byte actual)
public static void assertNotEquals(byte expected, byte actual)
public static void assertNotEquals(java.lang.String message, char expected, char actual)
public static void assertNotEquals(char expected, char actual)
public static void assertNotEquals(java.lang.String message, double expected, double actual, double delta)
public static void assertNotEquals(double expected, double actual, double delta)
public static void assertNotEquals(java.lang.String message, float expected, float actual, float delta)
public static void assertNotEquals(float expected, float actual, float delta)
public static void assertNotEquals(java.lang.String message, int expected, int actual)
public static void assertNotEquals(int expected, int actual)
public static void assertNotEquals(java.lang.String message, long expected, long actual)
public static void assertNotEquals(long expected, long actual)
public static void assertNotEquals(java.lang.String message, short expected, short actual)
public static void assertNotEquals(short expected, short actual)
public static void assertNotEquals(java.lang.String message, boolean expected, boolean actual)
public static void assertNotEquals(boolean expected, boolean actual)
public static void assertNotSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
public static void assertNotSame(java.lang.Object expected, java.lang.Object actual)
public static void fail(java.lang.Throwable cause)
public static void fail(java.lang.String message, java.lang.Throwable cause)
|
JUnit-addons version 1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |