From 7a6c99c0b09377bca0b77d2918cf1e2092b3f59c Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Wed, 8 Apr 2015 12:20:19 +0200 Subject: refactored the more sophisticated OSXML parser tests to the integration test folder. --- test/formats/osxml/OsxmlParserTest.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'test/formats') diff --git a/test/formats/osxml/OsxmlParserTest.cpp b/test/formats/osxml/OsxmlParserTest.cpp index 03f10d3..603d6c1 100644 --- a/test/formats/osxml/OsxmlParserTest.cpp +++ b/test/formats/osxml/OsxmlParserTest.cpp @@ -384,35 +384,5 @@ TEST(OsxmlParser, documentParsing) } } - -TEST(OsxmlParser, complexDocumentParsing) -{ - logger.reset(); - XmlStandaloneEnvironment env(logger); - Rooted book_document_node = - env.parse("complex_book.osxml", "", "", RttiSet{&RttiTypes::Document}); - ASSERT_FALSE(logger.hasError()); - ASSERT_FALSE(book_document_node == nullptr); - ASSERT_TRUE(book_document_node->isa(&RttiTypes::Document)); - Rooted doc = book_document_node.cast(); - ASSERT_TRUE(doc->validate(logger)); - ASSERT_FALSE(logger.hasError()); -} - -TEST(OsxmlParser, simpleAnnotation) -{ - logger.reset(); - XmlStandaloneEnvironment env(logger); - Rooted book_document_node = - env.parse("simple_annotation.osxml", "", "", RttiSet{&RttiTypes::Document}); - ASSERT_FALSE(logger.hasError()); - ASSERT_FALSE(book_document_node == nullptr); - ASSERT_TRUE(book_document_node->isa(&RttiTypes::Document)); - Rooted doc = book_document_node.cast(); - ASSERT_TRUE(doc->validate(logger)); - ASSERT_FALSE(logger.hasError()); -} - - } -- cgit v1.2.3