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/ContextTest.cc

    r9659 r10624  
    33#include "core/class/OrxonoxClass.h"
    44#include "core/CoreIncludes.h"
     5#include "core/module/ModuleInstance.h"
    56
    67namespace orxonox
     
    1415        };
    1516
     17        RegisterClassNoArgs(SubclassContext);
     18
    1619        // Fixture
    1720        class ContextTest : public ::testing::Test
     
    2023                virtual void SetUp()
    2124                {
     25                    new IdentifierManager();
     26                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
    2227                    Context::setRootContext(new Context(NULL));
    2328                }
     
    2530                virtual void TearDown()
    2631                {
    27                     Context::setRootContext(NULL);
     32                    Context::destroyRootContext();
     33                    ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
     34                    delete &IdentifierManager::getInstance();
    2835                }
    2936        };
Note: See TracChangeset for help on using the changeset viewer.