#include "se/ContactTransferRequestCommand.hpp" #include "se/CLTRID.hpp" #include "se/EPPDateFormatter.hpp" #include "xml/XMLParser.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("20140101.010101"); CLTRID::setClID("ACTKUTST"); ContactTransferRequestCommand cmd("JTKCON1", "jtkcon1pw"); const string expected("JTKCON1jtkcon1pwACTKUTST.20140101.010101.0"); const string xml(cmd.toXML()); ASSERT_EQ(expected, xml); } } int main(int argc, char* argv[]) { TEST_run(doWork); return TEST_errorCount(); }