Changeset 10624 for code/trunk/test/core/object/IteratorTest.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/IteratorTest.cc
r9659 r10624 6 6 #include "core/class/OrxonoxInterface.h" 7 7 #include "core/CoreIncludes.h" 8 #include "core/module/ModuleInstance.h" 8 9 9 10 namespace orxonox … … 24 25 }; 25 26 27 RegisterClassNoArgs(TestInterface); 28 RegisterClassNoArgs(TestClass); 29 26 30 // Fixture 27 31 class IteratorTest : public ::testing::Test … … 30 34 virtual void SetUp() 31 35 { 36 new IdentifierManager(); 37 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 32 38 Context::setRootContext(new Context(NULL)); 33 39 } … … 35 41 virtual void TearDown() 36 42 { 37 Context::setRootContext(NULL); 43 Context::destroyRootContext(); 44 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 45 delete &IdentifierManager::getInstance(); 38 46 } 39 47 };
Note: See TracChangeset
for help on using the changeset viewer.