Changeset 10624 for code/trunk/test/core/object/ClassFactoryTest.cc
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/test/core/object/ClassFactoryTest.cc
r9649 r10624 3 3 #include "core/BaseObject.h" 4 4 #include "core/object/Context.h" 5 #include "core/module/ModuleInstance.h" 6 #include "core/CoreIncludes.h" 5 7 6 8 namespace orxonox … … 14 16 virtual void SetUp() 15 17 { 18 new IdentifierManager(); 19 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 16 20 Context::setRootContext(new Context(NULL)); 17 21 } … … 19 23 virtual void TearDown() 20 24 { 21 Context::setRootContext(NULL); 25 Context::destroyRootContext(); 26 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 27 delete &IdentifierManager::getInstance(); 22 28 } 23 29 };
Note: See TracChangeset
for help on using the changeset viewer.