summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-10-14 01:35:38 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-10-14 01:35:38 +0100
commit4dbfb27a0c938c858c71bd73767bf59b0f0a388f (patch)
tree244e8d697cdffbd6c70edb35654da58fbc6dfc77
parentAdd new projects to default build (diff)
downloadlibadhocutil-4dbfb27a0c938c858c71bd73767bf59b0f0a388f.tar.bz2
libadhocutil-4dbfb27a0c938c858c71bd73767bf59b0f0a388f.tar.xz
libadhocutil-4dbfb27a0c938c858c71bd73767bf59b0f0a388f.zip
Add test over createNew
-rw-r--r--libadhocutil/unittests/testFactory.cpp7
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;
+}
+