summaryrefslogtreecommitdiff
path: root/test/core/model/TestDomain.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-09 01:14:09 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-09 01:14:09 +0100
commite44fb038ec4404f2c38b698ec95c80d051b8d0cf (patch)
tree95ae8fe8728ddd9fb8456973a095f4b44ceaee70 /test/core/model/TestDomain.hpp
parent0605eed698443dc18c48340084507c90e97a9333 (diff)
parent4ec16559eba87553241e2e20a9e31a62b7aed08a (diff)
Merge branch 'master' of somweyr.de:ousia
Conflicts: application/src/core/model/Document.cpp application/src/core/model/Domain.cpp
Diffstat (limited to 'test/core/model/TestDomain.hpp')
-rw-r--r--test/core/model/TestDomain.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/core/model/TestDomain.hpp b/test/core/model/TestDomain.hpp
index 54e79ee..aa3096d 100644
--- a/test/core/model/TestDomain.hpp
+++ b/test/core/model/TestDomain.hpp
@@ -69,6 +69,18 @@ static Rooted<Domain> constructBookDomain(Manager &mgr,
new FieldDescriptor(mgr, paragraph)};
paragraph->getFieldDescriptors().push_back(paragraph_field);
+ // We append "subsection" to section.
+ Rooted<StructuredClass> subsection{
+ new StructuredClass(mgr, "subsection", domain, any)};
+ section_field->getChildren().push_back(subsection);
+ domain->getStructureClasses().push_back(subsection);
+ // And the field of it.
+ Rooted<FieldDescriptor> subsection_field{
+ new FieldDescriptor(mgr, subsection)};
+ subsection->getFieldDescriptors().push_back(subsection_field);
+ // and we add the paragraph to subsections fields
+ subsection_field->getChildren().push_back(paragraph);
+
// Finally we add the "text" node, which is transparent as well.
Rooted<StructuredClass> text{new StructuredClass(
mgr, "text", domain, any, {nullptr}, {nullptr}, true)};