// amidtd_t.cxx #include "dial_ws_ami/amidtd.h" #include "dataset_util/DtdRegistry.h" #include #include using std::string; using std::cout; using std::endl; void msg(string msg) { cout << "----- "; cout << msg; cout << " -----" << endl; } int amidtd_t() { msg("Check the DTD"); cout << dtd() << endl; assert( dtd().size() != 0 ); assert( DtdRegistry::instance("dial").has_type("AMIMessage") ); msg("All tests passed successfully"); return 0; } #ifdef CTEST_MAIN int main() { return amidtd_t(); } #endif