Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 4, 2015, 9:12:21 PM (9 years ago)
Author:
landauf
Message:

merged branch core7 back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/test/core/object/IteratorTest.cc

    r9659 r10624  
    66#include "core/class/OrxonoxInterface.h"
    77#include "core/CoreIncludes.h"
     8#include "core/module/ModuleInstance.h"
    89
    910namespace orxonox
     
    2425        };
    2526
     27        RegisterClassNoArgs(TestInterface);
     28        RegisterClassNoArgs(TestClass);
     29
    2630        // Fixture
    2731        class IteratorTest : public ::testing::Test
     
    3034                virtual void SetUp()
    3135                {
     36                    new IdentifierManager();
     37                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
    3238                    Context::setRootContext(new Context(NULL));
    3339                }
     
    3541                virtual void TearDown()
    3642                {
    37                     Context::setRootContext(NULL);
     43                    Context::destroyRootContext();
     44                    ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
     45                    delete &IdentifierManager::getInstance();
    3846                }
    3947        };
Note: See TracChangeset for help on using the changeset viewer.