- Timestamp:
- Apr 26, 2015, 4:16:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/test/core/class/SubclassIdentifierTest.cc
r10400 r10403 4 4 #include "core/class/SubclassIdentifier.h" 5 5 #include "core/class/OrxonoxClass.h" 6 #include "core/module/ModuleInstance.h" 6 7 7 8 namespace orxonox … … 30 31 virtual void SetUp() 31 32 { 33 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(); 34 ModuleInstance::setCurrentModuleInstance(new ModuleInstance()); // overwrite ModuleInstance because the old one is now loaded and shouln't be used anymore. TODO: better solution? 35 Identifier::initConfigValues_s = false; // TODO: hack! 36 IdentifierManager::getInstance().createClassHierarchy(); 37 32 38 Context::setRootContext(new Context(NULL)); 33 39 } … … 36 42 { 37 43 Context::setRootContext(NULL); 44 45 IdentifierManager::getInstance().destroyClassHierarchy(); 38 46 } 39 47 };
Note: See TracChangeset
for help on using the changeset viewer.