Packages | |
ceylon.test |
Attributes | |
error | Source Code shared error error A test is in error if it propgates any exception which is not an AssertException |
failure | Source Code shared failure failure A test fails if it propgates an AssertException |
running | Source Code shared running running A test is running if it has been started, but has not yet completed execution. |
success | Source Code shared success success A test fails if it complete normally, (that is, does not throw an exception). |
undefined | Source Code shared undefined undefined A test which has not yet started execution. |
Methods | |
assertEquals | Source Code shared void assertEquals(Object? expected, Object? actual, String? message, Boolean compare(Object? expected, Object? actual)) Fails the test if the given objects are not equal according to the given |
assertFalse | Source Code shared void assertFalse(Boolean condition, String message) Fails the test if the assertion is true |
assertNotEquals | Source Code shared void assertNotEquals(Object? expected, Object? actual, String? message, Boolean compare(Object? expected, Object? actual)) Fails the test if the given objects are equal according to the given |
assertNotNull | Source Code shared void assertNotNull(Object? got, String message) Fails the test if the given result is null |
assertNull | Source Code shared void assertNull(Object? got, String message) Fails the test if the given result is not null |
assertTrue | Source Code shared void assertTrue(Boolean condition, String message) Fails the test if the assertion is false |
fail | Source Code shared void fail(String message) Fails the test. |
suite | Source Code shared void suite(String suiteName, <String->Anything()>[] tests) Configure a TestRunner with the given tests and run it |
Interfaces | |
TestListener | Source Code shared TestListener Contract for things needing to be informed about the execution of tests by a TestRunner. |
Classes | |
PrintingTestListener | Source Code shared PrintingTestListener A TestListener which prints information about test execution to the standard output. |
TestResult | Source Code shared TestResult Holds the results of running the tests held by the given |
TestRunner | Source Code shared TestRunner Capable of running tests, notifying TestListeners about each test |
TestState | Source Code shared abstract TestState Enumerates the possible states of a TestUnit |
TestUnit | Source Code shared TestUnit A named piece of test code, and it's state. |
error | Source Code shared error A test is in error if it propgates any exception which is not an AssertException |
failure | Source Code shared failure A test fails if it propgates an AssertException |
running | Source Code shared running A test is running if it has been started, but has not yet completed execution. |
success | Source Code shared success A test fails if it complete normally, (that is, does not throw an exception). |
undefined | Source Code shared undefined A test which has not yet started execution. |
Exceptions | |
AssertComparisonException | Source Code shared AssertComparisonException Subclass of |
AssertException | Source Code shared AssertException Thrown when assertion failures |