Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryTestCase.h>
Public Member Functions | |
TestCase (const QString &testName) | |
virtual void | DoSetUp () |
virtual void | DoTearDown () |
void | setUp () |
void | tearDown () |
Protected Member Functions | |
void | LeakDetailsOn () |
void | IgnoreLeakingObjects () |
Definition at line 27 of file berryTestCase.h.
berry::TestCase::TestCase | ( | const QString & | testName | ) |
Definition at line 30 of file berryTestCase.cpp.
|
virtual |
Sets up the fixture, for example, open a network connection. This method is called before a test is executed. The default implementation does nothing. Subclasses may extend.
Reimplemented in berry::UITestCase.
Definition at line 48 of file berryTestCase.cpp.
|
virtual |
Tears down the fixture, for example, close a network connection. This method is called after a test is executed. The default implementation closes all test windows, processing events both before and after doing so. Subclasses may extend.
Reimplemented in berry::UITestCase.
Definition at line 53 of file berryTestCase.cpp.
|
protected |
Call this method to ignore leaking objects and to continue with the unit tests.
Definition at line 42 of file berryTestCase.cpp.
References BERRY_WARN.
|
protected |
Call this method in your unit test to enable detailed output about leaking berry::Object instances.
Definition at line 37 of file berryTestCase.cpp.
void berry::TestCase::setUp | ( | void | ) |
Clients should overwrite DoSetUp() instead of this method.
Definition at line 58 of file berryTestCase.cpp.
References berry::DebugUtil::ResetObjectSummary().
Referenced by berry::UITestCase::setUp().
void berry::TestCase::tearDown | ( | void | ) |
Clients should overwrite DoSetUp() instead of this method.
Definition at line 67 of file berryTestCase.cpp.
References berry::DebugUtil::PrintObjectSummary().
Referenced by berry::UITestCase::tearDown().