Last change
on this file since 10872 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
|
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() |
---|
19 | { |
---|
20 | new IdentifierManager(); |
---|
21 | Context::setRootContext(new Context(NULL)); |
---|
22 | } |
---|
23 | |
---|
24 | virtual void TearDown() |
---|
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 != NULL); |
---|
36 | delete test; |
---|
37 | } |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.