Java junit.framework Assert fields, constructors, methods, implement or subclass

Example usage for Java junit.framework Assert fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for junit.framework Assert.

The text is from its open source code.

Subclass

junit.framework.Assert has subclasses.
Click this link to see all its subclasses.

Method

voidassertEquals(Object expected, Object actual)
Asserts that two objects are equal.
voidassertEquals(String expected, String actual)
Asserts that two Strings are equal.
voidassertEquals(long expected, long actual)
Asserts that two longs are equal.
voidassertEquals(boolean expected, boolean actual)
Asserts that two booleans are equal.
voidassertEquals(byte expected, byte actual)
Asserts that two bytes are equal.
voidassertEquals(char expected, char actual)
Asserts that two chars are equal.
voidassertEquals(short expected, short actual)
Asserts that two shorts are equal.
voidassertEquals(int expected, int actual)
Asserts that two ints are equal.
voidassertEquals(String message, Object expected, Object actual)
Asserts that two objects are equal.
voidassertEquals(String message, String expected, String actual)
Asserts that two Strings are equal.
voidassertEquals(double expected, double actual, double delta)
Asserts that two doubles are equal concerning a delta.
voidassertEquals(float expected, float actual, float delta)
Asserts that two floats are equal concerning a delta.
voidassertEquals(String message, long expected, long actual)
Asserts that two longs are equal.
voidassertEquals(String message, boolean expected, boolean actual)
Asserts that two booleans are equal.
voidassertEquals(String message, byte expected, byte actual)
Asserts that two bytes are equal.
voidassertEquals(String message, char expected, char actual)
Asserts that two chars are equal.
voidassertEquals(String message, short expected, short actual)
Asserts that two shorts are equal.
voidassertEquals(String message, int expected, int actual)
Asserts that two ints are equal.
voidassertFalse(boolean condition)
Asserts that a condition is false.
voidassertFalse(String message, boolean condition)
Asserts that a condition is false.
voidassertNotNull(String message, Object object)
Asserts that an object isn't null.
voidassertNotNull(Object object)
Asserts that an object isn't null.
voidassertNotSame(Object expected, Object actual)
Asserts that two objects do not refer to the same object.
voidassertNotSame(String message, Object expected, Object actual)
Asserts that two objects do not refer to the same object.
voidassertNull(String message, Object object)
Asserts that an object is null.
voidassertNull(Object object)
Asserts that an object is null.
voidassertSame(Object expected, Object actual)
Asserts that two objects refer to the same object.
voidassertSame(String message, Object expected, Object actual)
Asserts that two objects refer to the same object.
voidassertTrue(boolean condition)
Asserts that a condition is true.
voidassertTrue(String message, boolean condition)
Asserts that a condition is true.
voidfail(String message)
Fails a test with the given message.
voidfail()
Fails a test with no message.
voidfailNotEquals(String message, Object expected, Object actual)