|
| void | runTest () override |
| | Implement this method in your subclass to actually run your tests.
|
| |
| template<class Test > |
| void | doTest (const String &testName) |
| |
| | UnitTest (const String &name, const String &category=String()) |
| | Creates a test with the given name and optionally places it in a category.
|
| |
| virtual | ~UnitTest () |
| | Destructor.
|
| |
| const String & | getName () const noexcept |
| | Returns the name of the test.
|
| |
| const String & | getCategory () const noexcept |
| | Returns the category of the test.
|
| |
| void | performTest (UnitTestRunner *runner) |
| | Runs the test, using the specified UnitTestRunner.
|
| |
| virtual void | initialise () |
| | You can optionally implement this method to set up your test.
|
| |
| virtual void | shutdown () |
| | You can optionally implement this method to clear up after your test has been run.
|
| |
| virtual void | runTest ()=0 |
| | Implement this method in your subclass to actually run your tests.
|
| |
| void | beginTest (const String &testName) |
| | Tells the system that a new subsection of tests is beginning.
|
| |
| void | expect (bool testResult, const String &failureMessage=String()) |
| | Checks that the result of a test is true, and logs this result.
|
| |
| template<class ValueType > |
| void | expectEquals (ValueType actual, ValueType expected, String failureMessage=String()) |
| | Compares a value to an expected value.
|
| |
| template<class ValueType > |
| void | expectNotEquals (ValueType value, ValueType valueToCompareTo, String failureMessage=String()) |
| | Checks whether a value is not equal to a comparison value.
|
| |
| template<class ValueType > |
| void | expectGreaterThan (ValueType value, ValueType valueToCompareTo, String failureMessage=String()) |
| | Checks whether a value is greater than a comparison value.
|
| |
| template<class ValueType > |
| void | expectLessThan (ValueType value, ValueType valueToCompareTo, String failureMessage=String()) |
| | Checks whether a value is less than a comparison value.
|
| |
| template<class ValueType > |
| void | expectGreaterOrEqual (ValueType value, ValueType valueToCompareTo, String failureMessage=String()) |
| | Checks whether a value is greater or equal to a comparison value.
|
| |
| template<class ValueType > |
| void | expectLessOrEqual (ValueType value, ValueType valueToCompareTo, String failureMessage=String()) |
| | Checks whether a value is less or equal to a comparison value.
|
| |
| template<class ValueType > |
| void | expectWithinAbsoluteError (ValueType actual, ValueType expected, ValueType maxAbsoluteError, String failureMessage=String()) |
| | Computes the difference between a value and a comparison value, and if it is larger than a specified maximum value, prints out a message containing the actual and comparison values and the maximum allowed error.
|
| |
| void | logMessage (const String &message) |
| | Writes a message to the test log.
|
| |
| Random | getRandom () const |
| | Returns a shared RNG that all unit tests should use.
|
| |
Definition at line 26 of file juce_HashMap_test.cpp.