A set of assert methods. Messages are only displayed when an assert fails.
Defined in: Assert.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
jls.jsunit.Assert.assertEquals(expected, actual, message)
Asserts that two values are equal.
|
| <static> |
jls.jsunit.Assert.assertFalse(condition, message)
Asserts that a condition is false.
|
| <static> |
jls.jsunit.Assert.assertNotNull(value, message)
Asserts that a value is not null.
|
| <static> |
jls.jsunit.Assert.assertNotSame(expected, actual, message)
Asserts that two values differ.
|
| <static> |
jls.jsunit.Assert.assertNull(value, message)
Asserts that a value is null.
|
| <static> |
jls.jsunit.Assert.assertSame(expected, actual, message)
Asserts that two values are the same.
|
| <static> |
jls.jsunit.Assert.assertTrue(condition, message)
Asserts that a condition is true.
|
| <static> |
jls.jsunit.Assert.fail(message)
Fails a test with the given message.
|