Changeset 10544 for code/branches/core7/test/core/object
- Timestamp:
- Jun 7, 2015, 3:24:55 PM (9 years ago)
- Location:
- code/branches/core7/test/core/object
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/test/core/object/ClassFactoryTest.cc
r10535 r10544 16 16 virtual void SetUp() 17 17 { 18 new IdentifierManager(); 19 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 18 20 Context::setRootContext(new Context(NULL)); 19 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);20 21 } 21 22 22 23 virtual void TearDown() 23 24 { 25 Context::destroyRootContext(); 24 26 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 25 Context::setRootContext(NULL);27 delete &IdentifierManager::getInstance(); 26 28 } 27 29 }; -
code/branches/core7/test/core/object/ContextTest.cc
r10535 r10544 23 23 virtual void SetUp() 24 24 { 25 new IdentifierManager(); 26 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 25 27 Context::setRootContext(new Context(NULL)); 26 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);27 28 } 28 29 29 30 virtual void TearDown() 30 31 { 32 Context::destroyRootContext(); 31 33 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 32 Context::setRootContext(NULL);34 delete &IdentifierManager::getInstance(); 33 35 } 34 36 }; -
code/branches/core7/test/core/object/IteratorTest.cc
r10535 r10544 34 34 virtual void SetUp() 35 35 { 36 new IdentifierManager(); 37 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 36 38 Context::setRootContext(new Context(NULL)); 37 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);38 39 } 39 40 40 41 virtual void TearDown() 41 42 { 43 Context::destroyRootContext(); 42 44 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 43 Context::setRootContext(NULL);45 delete &IdentifierManager::getInstance(); 44 46 } 45 47 }; -
code/branches/core7/test/core/object/ListableTest.cc
r10535 r10544 11 11 { 12 12 public: 13 ListableClassTest() { RegisterObject(ListableClassTest); }13 ListableClassTest() { RegisterObject(ListableClassTest); } 14 14 }; 15 15 … … 39 39 virtual void SetUp() 40 40 { 41 new IdentifierManager(); 42 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 41 43 Context::setRootContext(new Context(NULL)); 42 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);43 44 } 44 45 45 46 virtual void TearDown() 46 47 { 48 Context::destroyRootContext(); 47 49 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 48 Context::setRootContext(NULL);50 delete &IdentifierManager::getInstance(); 49 51 } 50 52 }; -
code/branches/core7/test/core/object/ObjectListIteratorTest.cc
r10535 r10544 26 26 virtual void SetUp() 27 27 { 28 new IdentifierManager(); 29 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 28 30 Context::setRootContext(new Context(NULL)); 29 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);30 31 } 31 32 32 33 virtual void TearDown() 33 34 { 35 Context::destroyRootContext(); 34 36 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 35 Context::setRootContext(NULL);37 delete &IdentifierManager::getInstance(); 36 38 } 37 39 };
Note: See TracChangeset
for help on using the changeset viewer.