Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/manipulateAtomsTest.cpp

    r112f90 r6d574a  
    2222#include "World.hpp"
    2323#include "atom.hpp"
    24 
    25 #include "DummyUI.hpp"
    2624
    2725#ifdef HAVE_TESTRUNNER
     
    7472// set up and tear down
    7573void manipulateAtomsTest::setUp(){
    76   static bool hasDescriptor = false;
    7774  ActionHistory::init();
    7875  World::getInstance();
    79   // TODO: find a way to really reset the factory to a clean state in tear-down
    80   if(!hasDescriptor){
    81     UIFactory::registerFactory(new DummyUIFactory::description());
    82     hasDescriptor = true;
    83   }
    84   UIFactory::makeUserInterface("Dummy");
    8576  for(int i=0;i<ATOM_COUNT;++i){
    8677    atoms[i]= new AtomStub(i);
     
    9283  ActionRegistry::purgeInstance();
    9384  ActionHistory::purgeInstance();
    94   UIFactory::purgeInstance();
    9585}
    9686
Note: See TracChangeset for help on using the changeset viewer.