JadeTestCase Methods
The methods defined in the JadeTestCase class are summarized in the following table.
| Method | Description |
|---|---|
| assert | Invoked by a user test method if the method fails. |
| assertEquals | Asserts that an actual test result is equal to the expected result. If this is not the case, the test fails. A failure message is generated. |
| assertEqualsMsg | Asserts that an actual test result is equal to the expected result. If this is not the case, the test fails. The failure message passed to the method is used. |
| assertFalse | Asserts that a condition is false. If this is not the case, the test fails. A failure message is generated. |
| assertFalseMsg | Asserts that a condition is false. If this is not the case, the test fails. The failure message passed to the method is used. |
| assertNotNull | Asserts that an object exists. If this is not the case, the test fails. A failure message is generated. |
| assertNotNullMsg | Asserts that an object exists. If this is not the case, the test fails. The failure message passed to the method is used. |
| assertNull | Asserts that an object does not exist. If this is not the case, the test fails. A failure message is generated. |
| assertNullMsg | Asserts that an object does not exist. If this is not the case, the test fails. The failure message passed to the method is used. |
| assertTrue | Asserts that a condition is true. If this is not the case, the test fails. A failure message is generated. |
| assertTrueMsg | Asserts that a condition is true. If this is not the case, the test fails. The failure message passed to the method is used. |
| expectedException | Registers expected exceptions before a test method is executed. |
| info | Outputs the specified message but does not cause the test to fail. |
