00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef INCL_JUDOTEST_H
00030 #define INCL_JUDOTEST_H
00031
00032 #include "TestCaller.h"
00033 #include "TestSuite.h"
00034
00035 namespace judo
00036 {
00037 class GlobalsTest
00038 : public TestCase
00039 {
00040 public:
00041 GlobalsTest(const std::string& name)
00042 : TestCase(name)
00043 {}
00044
00045
00046 static Test* getTestSuite();
00047
00048
00049 void escape();
00050 void unescape();
00051 };
00052
00053 class CDATATest
00054 : public TestCase
00055 {
00056 public:
00057 CDATATest(const std::string& name)
00058 : TestCase(name)
00059 {}
00060
00061
00062 static Test* getTestSuite();
00063
00064
00065 void construct();
00066
00067 void setText();
00068 void appendText();
00069 void getText();
00070
00071 void CDATAtoString();
00072
00073 };
00074
00075 class ElementTest
00076 : public TestCase
00077 {
00078 public:
00079 ElementTest(const std::string& name)
00080 : TestCase(name)
00081 {}
00082
00083
00084 static Test* getTestSuite();
00085
00086
00087 void construct();
00088 void addElement();
00089 void findElement();
00090 void addCDATA();
00091 void detachChild();
00092
00093 void getAttrib();
00094 void putAttrib();
00095 void delAttrib();
00096 void cmpAttrib();
00097
00098 void ElementtoString();
00099 void ElementtoStringEx();
00100
00101 void getCDATA();
00102 };
00103
00104 class ElementStreamTest
00105 : public TestCase
00106 {
00107 public:
00108 ElementStreamTest(const std::string& name)
00109 : TestCase(name)
00110 {}
00111
00112
00113 static Test* getTestSuite();
00114
00115
00116 void construct();
00117 void push();
00118 void parseAtOnce();
00119 };
00120 };
00121 #endif