aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_factory.cpp')
-rw-r--r--test/unit/test_factory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index f4c560d5..0ff49fc5 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -150,7 +150,8 @@ TEST(factory, AuthorityFactory_createPrimeMeridian) {
EXPECT_THROW(factory->createPrimeMeridian("-1"),
NoSuchAuthorityCodeException);
EXPECT_TRUE(nn_dynamic_pointer_cast<PrimeMeridian>(
- factory->createObject("8903")) != nullptr);
+ AuthorityFactory::create(DatabaseContext::create(), "ESRI")
+ ->createObject("108900")) != nullptr);
auto pm = factory->createPrimeMeridian("8903");
ASSERT_EQ(pm->identifiers().size(), 1U);
EXPECT_EQ(pm->identifiers()[0]->code(), "8903");