#include "se/HostInfoCommand.hpp" #include "se/CLTRID.hpp" #include "session/Timer.hpp" #include "common/Test.hpp" #include "common/init.hpp" using namespace std; void doWork() { init("./etc/toolkit2.conf"); Timer::setTime("20140101.010101"); CLTRID::setClID("ACTKUTST"); HostInfoCommand cmd("ns1.ACTKUTST.com.au"); const string xml = cmd.toXML(); ASSERT_EQ("ns1.ACTKUTST.com.auACTKUTST.20140101.010101.0", xml); } int main(int argc, char* argv[]) { TEST_run(doWork); return TEST_errorCount(); }