Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2015, 4:16:49 PM (9 years ago)
Author:
landauf
Message:

added function to destroy the class hierarchy (i.e. reset all information about parents and children in Identifiers).
tests now use a fixture to create and destroy class hierarchy. this makes them independent of the order of execution (and also fixes the three *_NoFixture tests)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/test/core/class/IdentifierNestedClassHierarchyTest.cc

    r10400 r10403  
    44#include "core/class/OrxonoxClass.h"
    55#include "core/class/OrxonoxInterface.h"
     6#include "core/module/ModuleInstance.h"
    67
    78namespace orxonox
     
    108109                virtual void SetUp()
    109110                {
     111                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances();
     112                    ModuleInstance::setCurrentModuleInstance(new ModuleInstance()); // overwrite ModuleInstance because the old one is now loaded and shouln't be used anymore. TODO: better solution?
     113                    Identifier::initConfigValues_s = false; // TODO: hack!
     114                    IdentifierManager::getInstance().createClassHierarchy();
    110115                }
    111116
    112117                virtual void TearDown()
    113118                {
     119                    IdentifierManager::getInstance().destroyClassHierarchy();
    114120                }
    115121        };
Note: See TracChangeset for help on using the changeset viewer.