arabica/test/SAX2DOM/main.cpp

53 lines
2.3 KiB
C++
Raw Normal View History

2002-11-23 20:50:14 +01:00
#ifdef _MSC_VER
2002-06-21 13:16:28 +02:00
#pragma warning(disable: 4786 4250 4503)
2002-11-23 20:50:14 +01:00
#endif
2002-06-21 13:16:28 +02:00
#include <iostream>
#include <string>
//#include <wrappers/saxexpat.h>
#include <DOM/SAX2DOM/SAX2DOM.h>
#include <iostream>
#include <vector>
#include <map>
2005-10-23 23:22:38 +02:00
#include "../CppUnit/TestRunner.hpp"
#include "../CppUnit/framework/Test.h"
#include "../CppUnit/framework/TestSuite.h"
2002-06-21 13:16:28 +02:00
#include "test_DOMImplementation.h"
#include "test_DocumentType.h"
#include "test_Document.h"
#include "test_ProcessingInstruction.h"
#include "test_Siblings.h"
#include "test_Element.h"
#include "test_DocumentFragment.h"
#include "test_Attribute.h"
2002-09-03 15:26:08 +02:00
#include "test_SAX.h"
2005-08-30 11:41:46 +02:00
#include "test_Text.hpp"
2005-08-30 13:35:57 +02:00
#include "test_CDATA.hpp"
2005-08-30 13:58:54 +02:00
#include "test_CharacterData.hpp"
2002-06-21 13:16:28 +02:00
////////////////////////////////////////////////
int main(int argc, char* argv[])
{
TestRunner runner;
2005-10-24 23:59:44 +02:00
runner.addTest("DOMImplementationTest", DOMImplementationTest_suite<std::string, Arabica::default_string_adaptor_base<std::string> >());
runner.addTest("DocumentTypeTest", DocumentTypeTest_suite<std::string, Arabica::default_string_adaptor_base<std::string> >());
2005-10-26 22:52:48 +02:00
runner.addTest("DocumentTest", DocumentTest_suite<std::string, Arabica::default_string_adaptor_base<std::string> >());
runner.addTest("SiblingsTest", SiblingsTest_suite<std::string, Arabica::default_string_adaptor<std::string> >());
runner.addTest("ElementTest", ElementTest_suite<std::string, Arabica::default_string_adaptor<std::string> >());
2005-10-23 23:22:38 +02:00
runner.addTest("AttributeTest", AttrTest_suite<std::string, Arabica::default_string_adaptor<std::string> >());
2005-10-24 23:59:44 +02:00
runner.addTest("ProcessingInstructionTest", ProcessingInstructionTest_suite<std::string, Arabica::default_string_adaptor<std::string> >());
runner.addTest("TextTest", TextTest_suite<std::string, Arabica::default_string_adaptor_base<std::string> >());
runner.addTest("CDATATest", CDATATest_suite<std::string, Arabica::default_string_adaptor_base<std::string> >());
runner.addTest("CharacterDataText", CharacterDataTest_suite<std::string, Arabica::default_string_adaptor_base<std::string> >());
2005-10-26 22:52:48 +02:00
runner.addTest("DocumentFragmentTest", DocumentFragmentTest_suite<std::string, Arabica::default_string_adaptor_base<std::string> >());
runner.addTest("SAX2DOMTest", SAXTest_suite<std::string, Arabica::default_string_adaptor_base<std::string> >());
2002-06-21 13:16:28 +02:00
runner.run(argc, argv);
return 0;
} // main
// end of file