#include "common/init.hpp" #include "common/Test.hpp" #include "se/CLTRID.hpp" #include "session/Timer.hpp" #include "OTE/LPECheckCommand.hpp" #include using namespace std; void doWork() { init("./etc/toolkit2.conf"); { CLTRID::setClID("JTKUTEST"); Timer::setTime("20070101.010101"); LPECheckCommand cmd("test-andvalidate.claimsgafour"); const string xml(cmd.toXML()); ASSERT_EQ(cmd.getCommandType()->getCommandName(), "check"); ASSERT_EQ(cmd.getObjectType()->getName(), "domain"); ASSERT_EQ(xml, "test-andvalidate.claimsgafourJTKUTEST.20070101.010101.0"); } } int main(int argc, char* argv[]) { TEST_run(doWork); return TEST_errorCount(); }