arabica/test/SAX2DOM/main.cpp
2005-10-23 21:22:38 +00:00

52 lines
1.6 KiB
C++

#ifdef _MSC_VER
#pragma warning(disable: 4786 4250 4503)
#endif
#include <iostream>
#include <string>
//#include <wrappers/saxexpat.h>
#include <DOM/SAX2DOM/SAX2DOM.h>
#include <iostream>
#include <vector>
#include <map>
#include "../CppUnit/TestRunner.hpp"
#include "../CppUnit/framework/Test.h"
#include "../CppUnit/framework/TestSuite.h"
#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"
#include "test_SAX.h"
#include "test_Text.hpp"
#include "test_CDATA.hpp"
#include "test_CharacterData.hpp"
////////////////////////////////////////////////
int main(int argc, char* argv[])
{
TestRunner runner;
runner.addTest("DOMImplementationTest", DOMImplementationTest_suite());
runner.addTest("DocumentTypeTest", DocumentTypeTest_suite());
runner.addTest("DocumentTest", DocumentTest_suite());
runner.addTest("SiblingsTest", SiblingsTest_suite());
runner.addTest("ElementTest", ElementTest_suite());
runner.addTest("AttributeTest", AttrTest_suite<std::string, Arabica::default_string_adaptor<std::string> >());
runner.addTest("ProcessingInstructionTest", ProcessingInstructionTest_suite());
runner.addTest("TextTest", TextTest_suite());
runner.addTest("CDATATest", CDATATest_suite());
runner.addTest("CharacterDataText", CharacterDataTest_suite());
runner.addTest("DocumentFragmentTest", DocumentFragmentTest_suite());
runner.addTest("SAX2DOMTest", SAXTest_suite());
runner.run(argc, argv);
return 0;
} // main
// end of file