00001 #include <gtest/gtest.h> 00002 #include <ros/ros.h> 00003 #include <rosparam_handler/DefaultsMissingParameters.h> 00004 00005 typedef rosparam_handler::DefaultsMissingParameters ParamType; 00006 typedef rosparam_handler::DefaultsMissingConfig ConfigType; 00007 00008 TEST(RosparamHandler, DefaultsMissing) { 00009 ParamType testParams(ros::NodeHandle("~")); 00010 ASSERT_THROW(testParams.fromParamServer(), std::runtime_error); 00011 }