#include "se/ArDomainPolicyUndeleteCommand.hpp" #include "se/CLTRID.hpp" #include "common/init.hpp" #include "session/Timer.hpp" #include "common/Test.hpp" #include using namespace std; void doWork() { init("./etc/toolkit2.conf"); { Timer::setTime("20070101.010101"); CLTRID::setClID("JTKUTEST"); ArDomainPolicyUndeleteCommand cmd("jtkutest.com.au"); const string xml(cmd.toXML()); ASSERT_EQ(xml, "jtkutest.com.auJTKUTEST.20070101.010101.0"); } } int main(int argc, char* argv[]) { TEST_run(doWork); return TEST_errorCount(); }