Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/test/core/class/OrxonoxClassTest.cc @ 10640

Last change on this file since 10640 was 10624, checked in by landauf, 9 years ago

merged branch core7 back to trunk

  • Property svn:eol-style set to native
File size: 894 bytes
RevLine 
[9601]1#include <gtest/gtest.h>
2#include "core/class/OrxonoxClass.h"
[10624]3#include "core/class/IdentifierManager.h"
[9649]4#include "core/object/Context.h"
[9601]5
6namespace orxonox
7{
8    namespace
9    {
10        class TestClass : public OrxonoxClass
11        {
12        };
[9649]13
14        // Fixture
15        class OrxonoxClassTest : public ::testing::Test
16        {
17            public:
18                virtual void SetUp()
19                {
[10624]20                    new IdentifierManager();
[9649]21                    Context::setRootContext(new Context(NULL));
22                }
23
24                virtual void TearDown()
25                {
[10624]26                    Context::destroyRootContext();
27                    delete &IdentifierManager::getInstance();
[9649]28                }
29        };
[9601]30    }
31
[9649]32    TEST_F(OrxonoxClassTest, CanCreate)
[9601]33    {
34        TestClass* test = new TestClass();
35        ASSERT_TRUE(test != NULL);
36        delete test;
37    }
38}
Note: See TracBrowser for help on using the repository browser.