summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-15 20:17:18 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-15 20:17:18 +0100
commit4d2878c8b4899104fd4a8877beaf3c8771f0bd2e (patch)
treec1ac9e5983401f551221e865566ca37be30f3565
parent76c33b56df9ae13ba7e8c1f3d7ec6bc2118f3e26 (diff)
removed author attribute from book domain (got refactored to meta domain)
-rw-r--r--test/plugins/xml/XmlParserTest.cpp9
-rw-r--r--testdata/xmlparser/book_domain.oxm3
2 files changed, 1 insertions, 11 deletions
diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp
index 134e935..fdae779 100644
--- a/test/plugins/xml/XmlParserTest.cpp
+++ b/test/plugins/xml/XmlParserTest.cpp
@@ -214,15 +214,8 @@ TEST(XmlParser, domainParsing)
// get the book struct node.
Cardinality single;
single.merge({1});
- Rooted<StructType> bookAuthor{
- new StructType(book_domain->getManager(), "", nullptr)};
- bookAuthor->addAttribute(
- {new Attribute(book_domain->getManager(), "author",
- env.project->getSystemTypesystem()->getStringType(),
- "")},
- logger);
Rooted<StructuredClass> book = checkStructuredClass(
- "book", "book", book_domain, single, bookAuthor, nullptr, false, true);
+ "book", "book", book_domain, single, nullptr, nullptr, false, true);
// get the chapter struct node.
Rooted<StructuredClass> chapter =
checkStructuredClass("chapter", "chapter", book_domain);
diff --git a/testdata/xmlparser/book_domain.oxm b/testdata/xmlparser/book_domain.oxm
index c86d4e3..4218915 100644
--- a/testdata/xmlparser/book_domain.oxm
+++ b/testdata/xmlparser/book_domain.oxm
@@ -10,9 +10,6 @@
values. Also note that we need to specify explicitly, which classes
are allowed as root nodes. -->
<struct name="book" cardinality="{1}" isRoot="true">
- <attributes>
- <attribute name="author" type="string" default="''"/>
- </attributes>
<!-- implicitly:
<struct name="book" cardinality="{1}" isRoot="true"
transparent="false" isa="" attributesDescriptor="">