java.lang.Object | |
↳ | junit.framework.Assert |
![]() |
![]()
ActivityInstrumentationTestCase<T extends Activity>,
ActivityInstrumentationTestCase2<T extends Activity>,
ActivityTestCase,
ActivityUnitTestCase<T extends Activity>,
AdapterHelperTest,
AndroidTestCase,
ApplicationTestCase<T extends Application>,
BaseRecyclerViewInstrumentationTest,
BucketTest,
DefaultItemAnimatorTest,
DonutScrollerCompatTest,
GingerbreadScrollerCompatTest,
GridLayoutManagerTest,
IcsScrollerCompatTest,
and
15 others.
|
A set of assert methods. Messages are only displayed when an assert fails.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protect constructor since it is a static only class
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Asserts that two shorts are equal.
| |||||||||||
Asserts that two ints are equal.
| |||||||||||
Asserts that two shorts are equal.
| |||||||||||
Asserts that two chars are equal.
| |||||||||||
Asserts that two Strings are equal.
| |||||||||||
Asserts that two ints are equal.
| |||||||||||
Asserts that two doubles are equal concerning a delta.
| |||||||||||
Asserts that two longs are equal.
| |||||||||||
Asserts that two bytes are equal.
| |||||||||||
Asserts that two objects are equal.
| |||||||||||
Asserts that two booleans are equal.
| |||||||||||
Asserts that two floats are equal concerning a positive delta.
| |||||||||||
Asserts that two booleans are equal.
| |||||||||||
Asserts that two Strings are equal.
| |||||||||||
Asserts that two floats are equal concerning a delta.
| |||||||||||
Asserts that two bytes are equal.
| |||||||||||
Asserts that two doubles are equal concerning a delta.
| |||||||||||
Asserts that two chars are equal.
| |||||||||||
Asserts that two objects are equal.
| |||||||||||
Asserts that two longs are equal.
| |||||||||||
Asserts that a condition is false.
| |||||||||||
Asserts that a condition is false.
| |||||||||||
Asserts that an object isn't null.
| |||||||||||
Asserts that an object isn't null.
| |||||||||||
Asserts that two objects do not refer to the same object.
| |||||||||||
Asserts that two objects do not refer to the same object.
| |||||||||||
Asserts that an object is null.
| |||||||||||
Asserts that an object is null.
| |||||||||||
Asserts that two objects refer to the same object.
| |||||||||||
Asserts that two objects refer to the same object.
| |||||||||||
Asserts that a condition is true.
| |||||||||||
Asserts that a condition is true.
| |||||||||||
Fails a test with the given message.
| |||||||||||
Fails a test with no message.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Asserts that two shorts are equal.
Asserts that two ints are equal. If they are not an AssertionFailedError is thrown with the given message.
Asserts that two shorts are equal. If they are not an AssertionFailedError is thrown with the given message.
Asserts that two chars are equal.
Asserts that two Strings are equal.
Asserts that two ints are equal.
Asserts that two doubles are equal concerning a delta. If they are not an AssertionFailedError is thrown with the given message. If the expected value is infinity then the delta value is ignored.
Asserts that two longs are equal. If they are not an AssertionFailedError is thrown with the given message.
Asserts that two bytes are equal.
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
Asserts that two booleans are equal.
Asserts that two floats are equal concerning a positive delta. If they are not an AssertionFailedError is thrown with the given message. If the expected value is infinity then the delta value is ignored.
Asserts that two booleans are equal. If they are not an AssertionFailedError is thrown with the given message.
Asserts that two Strings are equal.
Asserts that two floats are equal concerning a delta. If the expected value is infinity then the delta value is ignored.
Asserts that two bytes are equal. If they are not an AssertionFailedError is thrown with the given message.
Asserts that two doubles are equal concerning a delta. If the expected value is infinity then the delta value is ignored.
Asserts that two chars are equal. If they are not an AssertionFailedError is thrown with the given message.
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
Asserts that two longs are equal.
Asserts that a condition is false. If it isn't it throws an AssertionFailedError with the given message.
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
Asserts that an object isn't null.
Asserts that two objects do not refer to the same object. If they do refer to the same object an AssertionFailedError is thrown.
Asserts that two objects do not refer to the same object. If they do refer to the same object an AssertionFailedError is thrown with the given message.
Asserts that an object is null. If it isn't an AssertionError
is
thrown.
Message contains: Expected:
object | Object to check or null
|
---|
Asserts that an object is null. If it is not an AssertionFailedError is thrown with the given message.
Asserts that two objects refer to the same object. If they are not the same an AssertionFailedError is thrown.
Asserts that two objects refer to the same object. If they are not an AssertionFailedError is thrown with the given message.
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.