summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-07-06 21:07:07 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-07-10 16:03:41 +0100
commitd5359b887175894df3d850b43e9dc86bc5f575fc (patch)
treea63934812ab7b4174cadc0013a5016cfa943d612
parentAdd test case over SqlSource::modify (diff)
downloadicetray-d5359b887175894df3d850b43e9dc86bc5f575fc.tar.bz2
icetray-d5359b887175894df3d850b43e9dc86bc5f575fc.tar.xz
icetray-d5359b887175894df3d850b43e9dc86bc5f575fc.zip
Add test calls to bind all the ICE types to a SQL command
-rw-r--r--icetray/unittests/testIceTrayServiceI.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/icetray/unittests/testIceTrayServiceI.cpp b/icetray/unittests/testIceTrayServiceI.cpp
index 5ab0fe4..6bea477 100644
--- a/icetray/unittests/testIceTrayServiceI.cpp
+++ b/icetray/unittests/testIceTrayServiceI.cpp
@@ -17,6 +17,10 @@ namespace TestIceTray {
{
fetch<int>(sql::subdir::some);
fetch<int>(sql::subdir::a::more);
+ // Just check we can bind all the ICE types
+ fetch<int, Ice::Byte, bool>(sql::testIceTrayServiceTestSql, 1, true);
+ fetch<int, Ice::Short, Ice::Float>(sql::testIceTrayServiceTestSql, 1, 0.1f);
+ fetch<int, Ice::Long, Ice::Double>(sql::testIceTrayServiceTestSql, 100000, 3.14);
}
void TestIceTrayServiceI::method2(Ice::Int id, const std::string & name, const Ice::Current &)