Changeset 10403 for code/branches/core7/test/core/command
- Timestamp:
- Apr 26, 2015, 4:16:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/test/core/command/CommandTest.cc
r10400 r10403 133 133 ModifyConsoleCommand("test").popFunction(); 134 134 } 135 136 // Fixture 137 class CommandTest : public ::testing::Test 138 { 139 public: 140 virtual void SetUp() 141 { 142 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(); 143 ModuleInstance::setCurrentModuleInstance(new ModuleInstance()); // overwrite ModuleInstance because the old one is now loaded and shouln't be used anymore. TODO: better solution? 144 Identifier::initConfigValues_s = false; // TODO: hack! 145 IdentifierManager::getInstance().createClassHierarchy(); 146 } 147 148 virtual void TearDown() 149 { 150 IdentifierManager::getInstance().destroyClassHierarchy(); 151 } 152 }; 135 153 } 136 154 … … 142 160 } 143 161 144 TEST (CommandTest, ModuleTest)162 TEST_F(CommandTest, ModuleTest) 145 163 { 146 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances();147 Identifier::initConfigValues_s = false; // TODO: hack!148 IdentifierManager::getInstance().createClassHierarchy();149 150 164 test(0, 0, 0); 151 165 CommandExecutor::execute("test 0", false);
Note: See TracChangeset
for help on using the changeset viewer.