summaryrefslogtreecommitdiff
path: root/test/core/model/DocumentTest.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-09 15:28:13 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-09 15:28:13 +0100
commit1eece2559a6cf16f5732d128c1cb6e43c5f60fbc (patch)
tree5086721fbe58ad9a5f34174890232cdb13d382c7 /test/core/model/DocumentTest.cpp
parent2fd367790fd61f427263bdcfda0acba848d73bd8 (diff)
Refactored building convenience methods to TestDocumentBuilder, added error logging and changed TestDocument and TestAdvanced as well as all users of those files accordingly.
Diffstat (limited to 'test/core/model/DocumentTest.cpp')
-rw-r--r--test/core/model/DocumentTest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/core/model/DocumentTest.cpp b/test/core/model/DocumentTest.cpp
index c86b285..2d53dcd 100644
--- a/test/core/model/DocumentTest.cpp
+++ b/test/core/model/DocumentTest.cpp
@@ -18,6 +18,8 @@
#include <gtest/gtest.h>
+#include <iostream>
+
#include <core/model/Document.hpp>
#include <core/model/Domain.hpp>
@@ -30,13 +32,13 @@ namespace model {
TEST(Document, testDocumentConstruction)
{
// Construct Manager
- Logger logger;
+ TerminalLogger logger {std::cerr, true};
Manager mgr{1};
Rooted<SystemTypesystem> sys{new SystemTypesystem(mgr)};
// Get the domain.
Rooted<Domain> domain = constructBookDomain(mgr, sys, logger);
// Construct the document.
- Rooted<Document> doc = constructBookDocument(mgr, domain);
+ Rooted<Document> doc = constructBookDocument(mgr, logger, domain);
// Check the document content.
ASSERT_FALSE(doc.isNull());