- File:
-
- 1 edited
-
src/unittests/manipulateAtomsTest.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/manipulateAtomsTest.cpp
r112f90 r6d574a 22 22 #include "World.hpp" 23 23 #include "atom.hpp" 24 25 #include "DummyUI.hpp"26 24 27 25 #ifdef HAVE_TESTRUNNER … … 74 72 // set up and tear down 75 73 void manipulateAtomsTest::setUp(){ 76 static bool hasDescriptor = false;77 74 ActionHistory::init(); 78 75 World::getInstance(); 79 // TODO: find a way to really reset the factory to a clean state in tear-down80 if(!hasDescriptor){81 UIFactory::registerFactory(new DummyUIFactory::description());82 hasDescriptor = true;83 }84 UIFactory::makeUserInterface("Dummy");85 76 for(int i=0;i<ATOM_COUNT;++i){ 86 77 atoms[i]= new AtomStub(i); … … 92 83 ActionRegistry::purgeInstance(); 93 84 ActionHistory::purgeInstance(); 94 UIFactory::purgeInstance();95 85 } 96 86
Note:
See TracChangeset
for help on using the changeset viewer.
