Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::TestCase Class Reference

#include <berryTestCase.h>

Inheritance diagram for berry::TestCase:
Collaboration diagram for berry::TestCase:

Public Member Functions

 TestCase (const QString &testName)
 
virtual void DoSetUp ()
 
virtual void DoTearDown ()
 
void setUp ()
 
void tearDown ()
 

Protected Member Functions

void LeakDetailsOn ()
 
void IgnoreLeakingObjects ()
 

Detailed Description

Definition at line 27 of file berryTestCase.h.

Constructor & Destructor Documentation

berry::TestCase::TestCase ( const QString &  testName)

Definition at line 30 of file berryTestCase.cpp.

Member Function Documentation

void berry::TestCase::DoSetUp ( )
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.

void berry::TestCase::DoTearDown ( )
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.

void berry::TestCase::IgnoreLeakingObjects ( )
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.

void berry::TestCase::LeakDetailsOn ( )
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().


The documentation for this class was generated from the following files: