From c5d46ac440254776d5eaefd245c2467de43e3527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Fri, 14 Sep 2018 11:02:36 +0200 Subject: [PATCH] Expect std::exception instead of Exiv2::Error --- unitTests/test_XmpKey.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unitTests/test_XmpKey.cpp b/unitTests/test_XmpKey.cpp index d000b722..5c3fc9ed 100644 --- a/unitTests/test_XmpKey.cpp +++ b/unitTests/test_XmpKey.cpp @@ -77,15 +77,15 @@ TEST_F(AXmpKey, canBeCloned) TEST_F(AXmpKey, throwsWithNotRegisteredWellFormedKey) { - ASSERT_THROW(XmpKey key(notRegisteredValidKey), Error); + ASSERT_THROW(XmpKey key(notRegisteredValidKey), std::exception); } TEST_F(AXmpKey, throwsWithNotRegisteredPrefix) { - ASSERT_THROW(XmpKey key("badPrefix", expectedProperty), Error); + ASSERT_THROW(XmpKey key("badPrefix", expectedProperty), std::exception); } TEST_F(AXmpKey, throwsWithBadFormedKey) { - ASSERT_THROW(XmpKey key(expectedProperty), Error); // It should have the format ns.prefix.key + ASSERT_THROW(XmpKey key(expectedProperty), std::exception); // It should have the format ns.prefix.key }