Public Member Functions | |
void | setUp (void) |
void | tearDown (void) |
Protected Member Functions | |
void | defaultConstructor (void) |
tests the default constructor | |
void | secondConstructor (void) |
tests the constructor with parameters | |
void | line (void) |
tests the set and get methods for line number | |
void | file (void) |
tests the set and get methods for the file name | |
void | message (void) |
tests the set and get methods for the message | |
Private Member Functions | |
CPPUNIT_TEST_SUITE (utest_Error) | |
CPPUNIT_TEST (defaultConstructor) | |
CPPUNIT_TEST (secondConstructor) | |
CPPUNIT_TEST (line) | |
CPPUNIT_TEST (file) | |
CPPUNIT_TEST (message) | |
CPPUNIT_TEST_SUITE_END () | |
Private Attributes | |
green::Error * | mDefCon |
for testing the default constructor | |
green::Error * | mSecCon |
for testing the paramaterized constructor | |
green::Error | mLine |
for testing setting and getting of the line | |
green::Error | mFile |
for testing setting and getting of the file | |
green::Error | mMessage |
for testing setting and getting of the message |
void utest_Error::setUp | ( | void | ) |
Basically sets up a few Errors to test later
void utest_Error::tearDown | ( | void | ) |
cleans up any allocated Errors