summaryrefslogtreecommitdiff
path: root/test/core/model/DocumentTest.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-12-19 00:29:55 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-12-19 00:29:55 +0100
commit23e593eb69f6d0beb197f33ae31b479c60d9316f (patch)
tree77046b5372b178ed08bdce398841b3eb0de11cea /test/core/model/DocumentTest.cpp
parent55d363bea503c0607c80604280c26c235a5d7ee1 (diff)
added convenience function for document construction and tested them.
Diffstat (limited to 'test/core/model/DocumentTest.cpp')
-rw-r--r--test/core/model/DocumentTest.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/core/model/DocumentTest.cpp b/test/core/model/DocumentTest.cpp
index dd883a4..26553dd 100644
--- a/test/core/model/DocumentTest.cpp
+++ b/test/core/model/DocumentTest.cpp
@@ -19,8 +19,10 @@
#include <gtest/gtest.h>
#include <core/model/Document.hpp>
+#include <core/model/Domain.hpp>
-#include "ModelTestUtils.hpp"
+#include "TestDocument.hpp"
+#include "TestDomain.hpp"
namespace ousia {
namespace model {
@@ -32,9 +34,11 @@ TEST(Document, testDocumentConstruction)
Manager mgr{1};
// Get the domain.
Rooted<Domain> domain = constructBookDomain(mgr);
-
- // TODO: IMPLEMENT
- ASSERT_TRUE(true);
+ // Construct the document.
+ Rooted<Document> doc = constructBookDocument(mgr, domain);
+
+ // If that works we are happy already.
+ ASSERT_FALSE(doc.isNull());
}
}
}