From d0b3fd56b8eef09faf7986cef5d8732df1e5ddf5 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sat, 20 Dec 2014 16:39:32 +0100 Subject: adapted model classes to new Rtti class --- test/core/model/DomainTest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/core/model/DomainTest.cpp') diff --git a/test/core/model/DomainTest.cpp b/test/core/model/DomainTest.cpp index 204a862..65954e7 100644 --- a/test/core/model/DomainTest.cpp +++ b/test/core/model/DomainTest.cpp @@ -28,7 +28,7 @@ namespace ousia { namespace model { void assert_path(std::vector> &result, size_t idx, - const ManagedType &expected_type, + const RttiBase &expected_type, std::vector expected_path) { ASSERT_TRUE(result.size() > idx); @@ -57,9 +57,9 @@ TEST(Domain, testDomainResolving) std::vector> res = domain->resolve(std::vector{"book"}); // First we expect the book domain. - assert_path(res, 0, DomainType, {"book"}); + assert_path(res, 0, typeOf(), {"book"}); // Then the book structure. - assert_path(res, 1, StructuredClassType, {"book", "book"}); + assert_path(res, 1, typeOf(), {"book", "book"}); ASSERT_EQ(2, res.size()); /* @@ -67,7 +67,7 @@ TEST(Domain, testDomainResolving) * StructuredClass should be returned. */ res = domain->resolve(std::vector{"book", "book"}); - assert_path(res, 0, StructuredClassType, {"book", "book"}); + assert_path(res, 0, typeOf(), {"book", "book"}); ASSERT_EQ(1, res.size()); /* @@ -75,7 +75,7 @@ TEST(Domain, testDomainResolving) */ res = domain->resolve(std::vector{"section"}); // TODO: Is that the path result we want? - assert_path(res, 0, StructuredClassType, {"book", "section"}); + assert_path(res, 0, typeOf(), {"book", "section"}); ASSERT_EQ(1, res.size()); /* @@ -83,7 +83,7 @@ TEST(Domain, testDomainResolving) * FieldDescriptor of the StructuredClass "book". */ res = domain->resolve(std::vector{"book", "book", ""}); - assert_path(res, 0, FieldDescriptorType, {"book", "book", ""}); + assert_path(res, 0, typeOf(), {"book", "book", ""}); ASSERT_EQ(1, res.size()); /* @@ -91,7 +91,7 @@ TEST(Domain, testDomainResolving) * but should be returned only once. */ res = domain->resolve("paragraph"); - assert_path(res, 0, StructuredClassType, {"book", "paragraph"}); + assert_path(res, 0, typeOf(), {"book", "paragraph"}); ASSERT_EQ(1, res.size()); } } -- cgit v1.2.3