summaryrefslogtreecommitdiff
path: root/test/plugins
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/plugins
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/plugins')
-rw-r--r--test/plugins/html/DemoOutputTest.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/plugins/html/DemoOutputTest.cpp b/test/plugins/html/DemoOutputTest.cpp
index 36b53b4..4ab2c53 100644
--- a/test/plugins/html/DemoOutputTest.cpp
+++ b/test/plugins/html/DemoOutputTest.cpp
@@ -26,7 +26,6 @@
#include <core/model/Domain.hpp>
#include <core/model/TestAdvanced.hpp>
-#include <core/model/TestDocument.hpp>
#include <core/model/TestDomain.hpp>
namespace ousia {
@@ -35,7 +34,7 @@ namespace html {
TEST(DemoHTMLTransformer, writeHTML)
{
// Construct Manager
- Logger logger;
+ TerminalLogger logger{std::cerr, true};
Manager mgr{1};
Rooted<model::SystemTypesystem> sys{new model::SystemTypesystem(mgr)};
// Get the domains.
@@ -48,8 +47,8 @@ TEST(DemoHTMLTransformer, writeHTML)
Rooted<model::Domain> emDom =
model::constructEmphasisDomain(mgr, sys, logger);
// Construct the document.
- Rooted<model::Document> doc =
- model::constructAdvancedDocument(mgr, bookDom, headingDom, listDom);
+ Rooted<model::Document> doc = model::constructAdvancedDocument(
+ mgr, logger, bookDom, headingDom, listDom, emDom);
#ifdef MANAGER_GRAPHVIZ_EXPORT
// dump the manager state