Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

judo_test.hpp

00001 //============================================================================
00002 // Project:       Jabber Universal Document Objects (Judo)
00003 // Filename:      judo_test.h
00004 // Description:   Unit Tests Header
00005 // Created at:    Tue Jul  3 13:06:11 2001
00006 // Modified at:   Fri Jul  6 12:30:17 2001
00007 //
00008 //   License:
00009 // 
00010 // The contents of this file are subject to the Jabber Open Source License
00011 // Version 1.0 (the "License").  You may not copy or use this file, in either
00012 // source code or executable form, except in compliance with the License.  You
00013 // may obtain a copy of the License at http://www.jabber.com/license/ or at
00014 // http://www.opensource.org/.  
00015 //
00016 // Software distributed under the License is distributed on an "AS IS" basis,
00017 // WITHOUT WARRANTY OF ANY KIND, either express or implied.  See the License
00018 // for the specific language governing rights and limitations under the
00019 // License.
00020 //
00021 //   Copyrights
00022 //
00023 // Portions created by or assigned to Jabber.com, Inc. are 
00024 // Copyright (c) 1999-2001 Jabber.com, Inc.  All Rights Reserved.  
00025 // 
00026 // $Id: judo_test.hpp,v 1.2 2002/07/13 19:30:22 temas Exp $
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         // Test suite generator
00046         static Test* getTestSuite();
00047 
00048         // Tests
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         // Test suite generator
00062         static Test* getTestSuite();
00063 
00064         // Tests
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         // Test suite generator
00084         static Test* getTestSuite();
00085 
00086         // Tests
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         // Test suite generator
00113         static Test* getTestSuite();
00114 
00115         // Tests
00116         void construct();
00117         void push();
00118         void parseAtOnce();
00119     };
00120 };
00121 #endif

Generated on Thu Jul 24 13:31:51 2003 for jabberoo by doxygen1.3-rc3