1 | // |
---|---|
2 | // SAXParserTest.h |
3 | // |
4 | // Definition of the SAXParserTest class. |
5 | // |
6 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. |
7 | // and Contributors. |
8 | // |
9 | // SPDX-License-Identifier: BSL-1.0 |
10 | // |
11 | |
12 | |
13 | #ifndef SAXParserTest_INCLUDED |
14 | #define SAXParserTest_INCLUDED |
15 | |
16 | |
17 | #include "Poco/XML/XML.h" |
18 | #include "Poco/CppUnit/TestCase.h" |
19 | #include "Poco/SAX/XMLReader.h" |
20 | |
21 | |
22 | class SAXParserTest: public CppUnit::TestCase |
23 | { |
24 | public: |
25 | SAXParserTest(const std::string& name); |
26 | ~SAXParserTest(); |
27 | |
28 | void testSimple1(); |
29 | void testSimple2(); |
30 | void testAttributes(); |
31 | void testCDATA(); |
32 | void testComment(); |
33 | void testPI(); |
34 | void testDTD(); |
35 | void testInternalEntity(); |
36 | void testNotation(); |
37 | void testExternalUnparsed(); |
38 | void testExternalParsed(); |
39 | void testDefaultNamespace(); |
40 | void testNamespaces(); |
41 | void testNamespacesNoPrefixes(); |
42 | void testNoNamespaces(); |
43 | void testUndeclaredNamespace(); |
44 | void testUndeclaredNamespaceNoPrefixes(); |
45 | void testUndeclaredNoNamespace(); |
46 | void testRSS(); |
47 | void testEncoding(); |
48 | void testParseMemory(); |
49 | void testCharacters(); |
50 | void testParsePartialReads(); |
51 | |
52 | void setUp(); |
53 | void tearDown(); |
54 | |
55 | std::string parse(Poco::XML::XMLReader& reader, int options, const std::string& data); |
56 | std::string parseMemory(Poco::XML::XMLReader& reader, int options, const std::string& data); |
57 | |
58 | static CppUnit::Test* suite(); |
59 | |
60 | static const std::string SIMPLE1; |
61 | static const std::string SIMPLE2; |
62 | static const std::string ATTRIBUTES; |
63 | static const std::string CDATA; |
64 | static const std::string COMMENT; |
65 | static const std::string PROCESSING_INSTRUCTION; |
66 | static const std::string DTD; |
67 | static const std::string INTERNAL_ENTITY; |
68 | static const std::string NOTATION; |
69 | static const std::string EXTERNAL_UNPARSED; |
70 | static const std::string EXTERNAL_PARSED; |
71 | static const std::string INCLUDE; |
72 | static const std::string DEFAULT_NAMESPACE; |
73 | static const std::string NAMESPACES; |
74 | static const std::string UNDECLARED_NAMESPACE; |
75 | static const std::string XHTML_LATIN1_ENTITIES; |
76 | static const std::string RSS; |
77 | static const std::string ENCODING; |
78 | static const std::string WSDL; |
79 | }; |
80 | |
81 | |
82 | #endif // SAXParserTest_INCLUDED |
83 |