Changeset 10535 for code/branches/core7/test/core
- Timestamp:
- Jun 6, 2015, 11:52:25 PM (10 years ago)
- Location:
- code/branches/core7/test/core
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/test/core/class/IdentifiableTest.cc
r10534 r10535 22 22 virtual void SetUp() 23 23 { 24 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);24 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 25 25 } 26 26 27 27 virtual void TearDown() 28 28 { 29 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);29 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 30 30 } 31 31 }; -
code/branches/core7/test/core/class/IdentifierClassHierarchyTest.cc
r10533 r10535 142 142 virtual void SetUp() 143 143 { 144 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);144 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 145 145 Identifier::initConfigValues_s = false; // TODO: hack! 146 146 IdentifierManager::getInstance().createClassHierarchy(); … … 150 150 { 151 151 IdentifierManager::getInstance().destroyClassHierarchy(); 152 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);152 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 153 153 } 154 154 }; -
code/branches/core7/test/core/class/IdentifierExternalClassHierarchyTest.cc
r10533 r10535 49 49 virtual void SetUp() 50 50 { 51 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);51 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 52 52 Identifier::initConfigValues_s = false; // TODO: hack! 53 53 IdentifierManager::getInstance().createClassHierarchy(); … … 57 57 { 58 58 IdentifierManager::getInstance().destroyClassHierarchy(); 59 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);59 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 60 60 } 61 61 }; -
code/branches/core7/test/core/class/IdentifierNestedClassHierarchyTest.cc
r10530 r10535 109 109 virtual void SetUp() 110 110 { 111 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);111 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 112 112 Identifier::initConfigValues_s = false; // TODO: hack! 113 113 IdentifierManager::getInstance().createClassHierarchy(); … … 117 117 { 118 118 IdentifierManager::getInstance().destroyClassHierarchy(); 119 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);119 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 120 120 } 121 121 }; -
code/branches/core7/test/core/class/IdentifierSimpleClassHierarchyTest.cc
r10533 r10535 51 51 virtual void SetUp() 52 52 { 53 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);53 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 54 54 Identifier::initConfigValues_s = false; // TODO: hack! 55 55 IdentifierManager::getInstance().createClassHierarchy(); … … 59 59 { 60 60 IdentifierManager::getInstance().destroyClassHierarchy(); 61 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);61 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 62 62 } 63 63 }; -
code/branches/core7/test/core/class/IdentifierTest.cc
r10534 r10535 29 29 virtual void SetUp() 30 30 { 31 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);31 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 32 32 } 33 33 34 34 virtual void TearDown() 35 35 { 36 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);36 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 37 37 } 38 38 }; -
code/branches/core7/test/core/class/SubclassIdentifierTest.cc
r10530 r10535 31 31 virtual void SetUp() 32 32 { 33 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);33 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 34 34 Identifier::initConfigValues_s = false; // TODO: hack! 35 35 IdentifierManager::getInstance().createClassHierarchy(); … … 43 43 44 44 IdentifierManager::getInstance().destroyClassHierarchy(); 45 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);45 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 46 46 } 47 47 }; -
code/branches/core7/test/core/class/SuperTest.cc
r10530 r10535 72 72 virtual void SetUp() 73 73 { 74 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);74 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 75 75 Identifier::initConfigValues_s = false; // TODO: hack! 76 76 IdentifierManager::getInstance().createClassHierarchy(); … … 84 84 85 85 IdentifierManager::getInstance().destroyClassHierarchy(); 86 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);86 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 87 87 } 88 88 }; -
code/branches/core7/test/core/command/CommandTest.cc
r10530 r10535 140 140 virtual void SetUp() 141 141 { 142 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);142 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::CONSOLE_COMMAND); 143 143 Identifier::initConfigValues_s = false; // TODO: hack! 144 144 IdentifierManager::getInstance().createClassHierarchy(); … … 148 148 { 149 149 IdentifierManager::getInstance().destroyClassHierarchy(); 150 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);150 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::CONSOLE_COMMAND); 151 151 } 152 152 }; -
code/branches/core7/test/core/object/ClassFactoryTest.cc
r10530 r10535 4 4 #include "core/object/Context.h" 5 5 #include "core/module/ModuleInstance.h" 6 #include "core/CoreIncludes.h" 6 7 7 8 namespace orxonox … … 16 17 { 17 18 Context::setRootContext(new Context(NULL)); 18 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);19 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 19 20 } 20 21 21 22 virtual void TearDown() 22 23 { 23 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);24 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 24 25 Context::setRootContext(NULL); 25 26 } -
code/branches/core7/test/core/object/ContextTest.cc
r10530 r10535 24 24 { 25 25 Context::setRootContext(new Context(NULL)); 26 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);26 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 27 27 } 28 28 29 29 virtual void TearDown() 30 30 { 31 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);31 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 32 32 Context::setRootContext(NULL); 33 33 } -
code/branches/core7/test/core/object/IteratorTest.cc
r10530 r10535 35 35 { 36 36 Context::setRootContext(new Context(NULL)); 37 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);37 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 38 38 } 39 39 40 40 virtual void TearDown() 41 41 { 42 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);42 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 43 43 Context::setRootContext(NULL); 44 44 } -
code/branches/core7/test/core/object/ListableTest.cc
r10530 r10535 40 40 { 41 41 Context::setRootContext(new Context(NULL)); 42 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);42 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 43 43 } 44 44 45 45 virtual void TearDown() 46 46 { 47 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);47 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 48 48 Context::setRootContext(NULL); 49 49 } -
code/branches/core7/test/core/object/ObjectListIteratorTest.cc
r10530 r10535 27 27 { 28 28 Context::setRootContext(new Context(NULL)); 29 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances( 0);29 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 30 30 } 31 31 32 32 virtual void TearDown() 33 33 { 34 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances( 0);34 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 35 35 Context::setRootContext(NULL); 36 36 } -
code/branches/core7/test/core/singleton/ScopeTest.cc
r10530 r10535 2 2 #include "core/singleton/ScopedSingletonIncludes.h" 3 3 #include "core/module/ModuleInstance.h" 4 #include "core/CoreIncludes.h" 4 5 5 6 namespace orxonox … … 27 28 virtual void SetUp() 28 29 { 29 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(0); 30 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 31 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::SCOPED_SINGLETON_WRAPPER); 30 32 } 31 33 32 34 virtual void TearDown() 33 35 { 34 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(0); 36 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::SCOPED_SINGLETON_WRAPPER); 37 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 35 38 } 36 39 };
Note: See TracChangeset
for help on using the changeset viewer.