summaryrefslogtreecommitdiff
path: root/test/plugins/xml
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-23 15:47:59 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-23 15:47:59 +0100
commit18d3637ca02ab69f1ee744fa94c43c243de0f571 (patch)
tree42c859f014ab7dbb7d31a747e0ef3839c77c60fa /test/plugins/xml
parent85d72823ef18711fe7a29f5b23cc37b318766332 (diff)
parentaa817d3bfd90aa39b6fd8a915bc78a8bb210cd3d (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'test/plugins/xml')
-rw-r--r--test/plugins/xml/XmlParserTest.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp
index f1956e0..52b64e5 100644
--- a/test/plugins/xml/XmlParserTest.cpp
+++ b/test/plugins/xml/XmlParserTest.cpp
@@ -20,14 +20,13 @@
#include <gtest/gtest.h>
+#include <core/common/CharReader.hpp>
#include <core/common/Logger.hpp>
#include <core/parser/StandaloneParserContext.hpp>
#include <plugins/xml/XmlParser.hpp>
namespace ousia {
-namespace parser {
-namespace xml {
static TerminalLogger logger(std::cerr, true);
@@ -41,7 +40,6 @@ TEST(XmlParser, mismatchedTagException)
p.parse("<document>\n</document2>", ctx.context);
}
catch (LoggableException ex) {
- ASSERT_EQ(2, ex.loc.line);
hadException = true;
}
ASSERT_TRUE(hadException);
@@ -82,8 +80,6 @@ TEST(XmlParser, namespaces)
XmlParser p;
CharReader reader(TEST_DATA);
{
- ScopedLogger sl(logger, "test.oxd", SourceLocation{},
- CharReader::contextCallback, &reader);
try {
p.parse(TEST_DATA, ctx.context);
}
@@ -94,6 +90,4 @@ TEST(XmlParser, namespaces)
}
}
}
-}
-}