Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

ringTest.h

Go to the documentation of this file.
00001 #ifndef CPP_UNIT_RINGTEST_H
00002 #define CPP_UNIT_RINGTEST_H
00003 
00004 #include <cppunit/extensions/HelperMacros.h>
00005 #include "src/cosme.h"
00006 #include "src/ring.h"
00007 #include "testStaticVars.h"
00008 
00009 
00010 
00020 class ringTest : public CPPUNIT_NS::TestFixture
00021 {
00022 
00023   // Create thes test suite associated to this class
00024   CPPUNIT_TEST_SUITE( ringTest );
00025   
00026   // Add every test functions to the test suite
00027   CPPUNIT_TEST( testConstructor );
00028   CPPUNIT_TEST( testPrev );
00029   CPPUNIT_TEST( testNext );
00030   CPPUNIT_TEST( testHighlight );
00031   
00032   CPPUNIT_TEST( testGetNode );
00033   CPPUNIT_TEST( testGetRight );
00034   CPPUNIT_TEST( testGetLeft );
00035   CPPUNIT_TEST( testGetWidth );
00036   
00037   CPPUNIT_TEST( testSetRight );
00038   CPPUNIT_TEST( testSetLeft );
00039   CPPUNIT_TEST( testSetWidth );
00040   
00041   
00042   // End of the test suite
00043   CPPUNIT_TEST_SUITE_END();
00044 
00045 protected:
00046    Ring* ring;
00047    Ring* fixed_ring;
00048       
00049 public: 
00050   void setUp();
00051   void tearDown();
00052    
00053 protected:
00054   // Test the constructor
00055   void testConstructor();
00056   
00057   // Test the getter for the next and previous ring
00058   void testPrev();
00059   void testNext();
00060   
00061   // Test the static methods
00062   void testHighlight();
00063   
00064   // Test first every getter
00065   void testGetNode();
00066   void testGetWidth();
00067   void testGetLeft();
00068   void testGetRight();
00069   
00070   // Test then every setter
00071   void testSetWidth();
00072   void testSetLeft();
00073   void testSetRight();
00074   
00075   
00076 };
00077 #endif
00078 

Generated on Tue Jul 12 16:40:18 2005 for CosmeProject by  doxygen 1.4.3