#include "se/ArDomainUnrenewCommand.hpp" #include "se/CLTRID.hpp" #include "se/EPPDateFormatter.hpp" #include "session/Timer.hpp" #include "common/init.hpp" #include "common/Test.hpp" #include using namespace std; void doWork() { init("/home/drde/etc/toolkit2.conf"); Timer::setTime("20070101.010101"); CLTRID::setClID("JTKUTEST"); ArDomainUnrenewCommand cmd( "jtkutest.com.au", *EPPDateFormatter::fromXSDateTime("2007-01-01T00:00:00.0Z")); const string xml(cmd.toXML()); ASSERT_EQ(xml, "jtkutest.com.au2007-01-01JTKUTEST.20070101.010101.0"); } int main(int argc, char* argv[]) { TEST_run(doWork); return TEST_errorCount(); }