summaryrefslogtreecommitdiff
path: root/test/core/model/DomainTest.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-30 10:41:39 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-30 10:41:39 +0100
commit33628e1f35ab1eb593391e87faaf9115b203c9b3 (patch)
tree2ea052b03f74cad35129c79d3cd5c09c0b969337 /test/core/model/DomainTest.cpp
parentd6d7d7f2858d33bb3bcd950aa866b9a09047082f (diff)
parentc4da68ba28e742810d05d35f0a26ef1d9b8c5b6c (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'test/core/model/DomainTest.cpp')
-rw-r--r--test/core/model/DomainTest.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/core/model/DomainTest.cpp b/test/core/model/DomainTest.cpp
index 8bf1a47..767ac0c 100644
--- a/test/core/model/DomainTest.cpp
+++ b/test/core/model/DomainTest.cpp
@@ -50,41 +50,41 @@ TEST(Domain, testDomainResolving)
std::vector<ResolutionResult> res;
// There is one domain called "book"
- res = domain->resolve("book", typeOf<Domain>());
+ res = domain->resolve(RttiTypes::Domain, "book");
ASSERT_EQ(1U, res.size());
- assert_path(res[0], typeOf<Domain>(), {"book"});
+ assert_path(res[0], RttiTypes::Domain, {"book"});
// There is one domain called "book"
- res = domain->resolve("book", typeOf<StructuredClass>());
+ res = domain->resolve(RttiTypes::StructuredClass, "book");
ASSERT_EQ(1U, res.size());
- assert_path(res[0], typeOf<StructuredClass>(), {"book", "book"});
+ assert_path(res[0], RttiTypes::StructuredClass, {"book", "book"});
// If we explicitly ask for the "book, book" path, then only the
// StructuredClass should be returned.
- res = domain->resolve(std::vector<std::string>{"book", "book"},
- typeOf<Domain>());
+ res = domain->resolve(RttiTypes::Domain,
+ std::vector<std::string>{"book", "book"});
ASSERT_EQ(0U, res.size());
- res = domain->resolve(std::vector<std::string>{"book", "book"},
- typeOf<StructuredClass>());
+ res = domain->resolve(RttiTypes::StructuredClass,
+ std::vector<std::string>{"book", "book"});
ASSERT_EQ(1U, res.size());
// If we ask for "section" the result should be unique as well.
- res = domain->resolve("section", typeOf<StructuredClass>());
+ res = domain->resolve(RttiTypes::StructuredClass, "section");
ASSERT_EQ(1U, res.size());
- assert_path(res[0], typeOf<StructuredClass>(), {"book", "section"});
+ assert_path(res[0], RttiTypes::StructuredClass, {"book", "section"});
// If we ask for "paragraph" it is referenced two times in the Domain graph,
// but should be returned only once.
- res = domain->resolve("paragraph", typeOf<StructuredClass>());
+ res = domain->resolve(RttiTypes::StructuredClass, "paragraph");
ASSERT_EQ(1U, res.size());
- assert_path(res[0], typeOf<StructuredClass>(), {"book", "paragraph"});
+ assert_path(res[0], RttiTypes::StructuredClass, {"book", "paragraph"});
}
Rooted<StructuredClass> getClass(const std::string name, Handle<Domain> dom)
{
std::vector<ResolutionResult> res =
- dom->resolve(name, RttiTypes::StructuredClass);
+ dom->resolve(RttiTypes::StructuredClass, name);
return res[0].node.cast<StructuredClass>();
}