#include #include #include #include #include #include #include #include #include "Swiften/Server/ServerStanzaChannel.h" #include "Swiften/Server/ServerFromClientSession.h" #include "Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.h" #include "basictest.h" #include "transport/Util.h" using namespace Transport; class StringTreeParserTest : public CPPUNIT_NS :: TestFixture{ CPPUNIT_TEST_SUITE(StringTreeParserTest); CPPUNIT_TEST(parseEscapedCharacters); CPPUNIT_TEST_SUITE_END(); public: void setUp (void) { } void tearDown (void) { } void parseEscapedCharacters() { Swift::ParserElement::ref root = Swift::StringTreeParser::parse("<test>"); CPPUNIT_ASSERT_EQUAL(std::string(""), root->getText()); } }; CPPUNIT_TEST_SUITE_REGISTRATION (StringTreeParserTest);