Last change
on this file since 11283 was
11071,
checked in by landauf, 9 years ago
|
merged branch cpp11_v3 back to trunk
|
-
Property svn:eol-style set to
native
|
File size:
918 bytes
|
Line | |
---|
1 | #include <gtest/gtest.h> |
---|
2 | #include "core/class/OrxonoxClass.h" |
---|
3 | #include "core/class/IdentifierManager.h" |
---|
4 | #include "core/object/Context.h" |
---|
5 | |
---|
6 | namespace orxonox |
---|
7 | { |
---|
8 | namespace |
---|
9 | { |
---|
10 | class TestClass : public OrxonoxClass |
---|
11 | { |
---|
12 | }; |
---|
13 | |
---|
14 | // Fixture |
---|
15 | class OrxonoxClassTest : public ::testing::Test |
---|
16 | { |
---|
17 | public: |
---|
18 | virtual void SetUp() override |
---|
19 | { |
---|
20 | new IdentifierManager(); |
---|
21 | Context::setRootContext(new Context(nullptr)); |
---|
22 | } |
---|
23 | |
---|
24 | virtual void TearDown() override |
---|
25 | { |
---|
26 | Context::destroyRootContext(); |
---|
27 | delete &IdentifierManager::getInstance(); |
---|
28 | } |
---|
29 | }; |
---|
30 | } |
---|
31 | |
---|
32 | TEST_F(OrxonoxClassTest, CanCreate) |
---|
33 | { |
---|
34 | TestClass* test = new TestClass(); |
---|
35 | ASSERT_TRUE(test != nullptr); |
---|
36 | delete test; |
---|
37 | } |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.