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