Changeset 10403 for code/branches/core7/test/core/class/SuperTest.cc
- Timestamp:
- Apr 26, 2015, 4:16:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/test/core/class/SuperTest.cc
r10400 r10403 5 5 #include "core/BaseObject.h" 6 6 #include "core/class/Super.h" 7 #include "core/module/ModuleInstance.h" 7 8 8 9 namespace orxonox … … 65 66 RegisterClass(TestSubclass); 66 67 67 // Fixture68 // Fixture 68 69 class SuperTest : public ::testing::Test 69 70 { … … 71 72 virtual void SetUp() 72 73 { 74 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(); 75 ModuleInstance::setCurrentModuleInstance(new ModuleInstance()); // overwrite ModuleInstance because the old one is now loaded and shouln't be used anymore. TODO: better solution? 76 Identifier::initConfigValues_s = false; // TODO: hack! 77 IdentifierManager::getInstance().createClassHierarchy(); 78 73 79 Context::setRootContext(new Context(NULL)); 74 80 } … … 77 83 { 78 84 Context::setRootContext(NULL); 85 86 IdentifierManager::getInstance().destroyClassHierarchy(); 79 87 } 80 88 };
Note: See TracChangeset
for help on using the changeset viewer.