Static Public Member Functions

mitkRenderingManagerTestClass Class Reference

List of all members.

Static Public Member Functions

static void TestPropertyList (mitk::RenderingManager::Pointer renderingManager)

Detailed Description

Simple example for a test for the class "RenderingManager".

argc and argv are the command line parameters which were passed to the ADD_TEST command in the CMakeLists.txt file. For the automatic tests, argv is either empty for the simple tests or contains the filename of a test image for the image tests (see CMakeLists.txt).

Definition at line 40 of file mitkRenderingManagerTest.cpp.


Member Function Documentation

static void mitkRenderingManagerTestClass::TestPropertyList ( mitk::RenderingManager::Pointer  renderingManager ) [inline, static]

Definition at line 44 of file mitkRenderingManagerTest.cpp.

References mitk::GenericProperty< T >::GetValue(), MITK_TEST_CONDITION, and mitk::BoolProperty::New().

Referenced by mitkRenderingManagerTest().

{

  mitk::PropertyList::Pointer propertyList =  renderingManager->GetPropertyList();
   
  MITK_TEST_CONDITION(renderingManager->GetPropertyList().IsNotNull(), "Testing if the constructor set the propertylist" )

  //check if the default properties are set
  renderingManager->SetProperty("booltest", mitk::BoolProperty::New(true));

  mitk::BoolProperty* prop = dynamic_cast<mitk::BoolProperty*>( renderingManager->GetProperty("booltest") );

  MITK_TEST_CONDITION(prop->GetValue(), "Testing if getting the bool property" )
  
  MITK_TEST_CONDITION(propertyList == renderingManager->GetPropertyList(), "Testing if the propertylist has changed during the last tests" )
}

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines