From 4dbfb27a0c938c858c71bd73767bf59b0f0a388f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 14 Oct 2015 01:35:38 +0100 Subject: Add test over createNew --- libadhocutil/unittests/testFactory.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libadhocutil/unittests/testFactory.cpp b/libadhocutil/unittests/testFactory.cpp index 7a94aa9..da8ab6f 100644 --- a/libadhocutil/unittests/testFactory.cpp +++ b/libadhocutil/unittests/testFactory.cpp @@ -70,3 +70,10 @@ BOOST_AUTO_TEST_CASE( create ) BOOST_REQUIRE(i2 != i3); } +BOOST_AUTO_TEST_CASE( createNew ) +{ + auto i = BaseThingFactory::createNew("a", 1, "std"); + BOOST_REQUIRE(i); + delete i; +} + -- cgit v1.2.3