diff options
-rw-r--r-- | libadhocutil/unittests/testFactory.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; +} + |