Back to index

salome-kernel  6.5.0
SALOMEDSTest.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 #ifndef _SALOMEDSTEST_HXX_
00024 #define _SALOMEDSTEST_HXX_
00025 
00026 #include <cppunit/extensions/HelperMacros.h>
00027 
00028 #include <SALOMEconfig.h>
00029 #include CORBA_SERVER_HEADER(SALOMEDS)
00030 
00031 class SALOMEDSTest : public CppUnit::TestFixture
00032 {
00033   CPPUNIT_TEST_SUITE( SALOMEDSTest );
00034 
00035   //Attributes' tests
00036   
00037   CPPUNIT_TEST( testAttributeComment );
00038   CPPUNIT_TEST( testAttributeDrawable );
00039   CPPUNIT_TEST( testAttributeExpandable );
00040   CPPUNIT_TEST( testAttributeExternalFileDef );
00041   CPPUNIT_TEST( testAttributeFileType );
00042   CPPUNIT_TEST( testAttributeFlags );
00043   CPPUNIT_TEST( testAttributeGraphic );
00044   CPPUNIT_TEST( testAttributeIOR );
00045   CPPUNIT_TEST( testAttributeInteger );
00046   CPPUNIT_TEST( testAttributeLocalID );
00047   CPPUNIT_TEST( testAttributeName );
00048   CPPUNIT_TEST( testAttributeOpened );
00049   CPPUNIT_TEST( testAttributeParameter );  
00050   CPPUNIT_TEST( testAttributePersistentRef );
00051   CPPUNIT_TEST( testAttributePixMap );
00052   CPPUNIT_TEST( testAttributePythonObject );
00053   CPPUNIT_TEST( testAttributeReal );
00054   CPPUNIT_TEST( testAttributeSelectable );
00055   CPPUNIT_TEST( testAttributeSequenceOfInteger );
00056   CPPUNIT_TEST( testAttributeSequenceOfReal );
00057   CPPUNIT_TEST( testAttributeStudyProperties );
00058   CPPUNIT_TEST( testAttributeTableOfInteger );  
00059   CPPUNIT_TEST( testAttributeTableOfReal );  
00060   CPPUNIT_TEST( testAttributeTableOfString );
00061   CPPUNIT_TEST( testAttributeTarget );
00062   CPPUNIT_TEST( testAttributeTextColor );
00063   CPPUNIT_TEST( testAttributeTextHighlightColor );
00064   CPPUNIT_TEST( testAttributeTreeNode );
00065   CPPUNIT_TEST( testAttributeUserID );
00066   CPPUNIT_TEST( testChildIterator );
00067   CPPUNIT_TEST( testSComponent );
00068   CPPUNIT_TEST( testSComponentIterator );
00069   CPPUNIT_TEST( testSObject );
00070   CPPUNIT_TEST( testStudy );  
00071   CPPUNIT_TEST( testStudyBuilder );
00072   CPPUNIT_TEST( testStudyManager );
00073   CPPUNIT_TEST( testUseCase );
00074 
00075 
00076   CPPUNIT_TEST_SUITE_END();
00077 
00078 public:
00079 
00080   virtual void setUp();
00081   virtual void tearDown();
00082 
00083   //Attributes
00084   void testAttributeComment();
00085   void testAttributeDrawable();
00086   void testAttributeExpandable();
00087   void testAttributeExternalFileDef();
00088   void testAttributeFileType();
00089   void testAttributeFlags();
00090   void testAttributeGraphic();
00091   void testAttributeIOR();
00092   void testAttributeInteger();
00093   void testAttributeLocalID();
00094   void testAttributeName();
00095   void testAttributeOpened();
00096   void testAttributeParameter();
00097   void testAttributePersistentRef();
00098   void testAttributePixMap();
00099   void testAttributePythonObject();
00100   void testAttributeReal();
00101   void testAttributeSelectable();
00102   void testAttributeSequenceOfInteger();
00103   void testAttributeSequenceOfReal();
00104   void testAttributeStudyProperties();
00105   void testAttributeTableOfInteger();
00106   void testAttributeTableOfReal();
00107   void testAttributeTableOfString();
00108   void testAttributeTarget();
00109   void testAttributeTextColor();
00110   void testAttributeTextHighlightColor();
00111   void testAttributeTreeNode();
00112   void testAttributeUserID(); 
00113 
00114   //Objects
00115   void testChildIterator();
00116   void testSComponent();
00117   void testSComponentIterator();
00118   void testSObject();
00119   void testStudy();
00120   void testStudyBuilder();
00121   void testStudyManager();
00122   void testUseCase();
00123 
00124 protected:
00125 
00126 SALOMEDS::StudyManager_var _sm;
00127 CORBA::ORB_var             _orb;
00128                 
00129 };
00130 
00131 
00132 
00133 class SALOMEDSTest_Embedded : public SALOMEDSTest
00134 {
00135   CPPUNIT_TEST_SUITE( SALOMEDSTest_Embedded );
00136 
00137   //Attributes' tests
00138   
00139   CPPUNIT_TEST( testAttributeComment );
00140   CPPUNIT_TEST( testAttributeDrawable );
00141   CPPUNIT_TEST( testAttributeExpandable );
00142   CPPUNIT_TEST( testAttributeExternalFileDef );
00143   CPPUNIT_TEST( testAttributeFileType );
00144   CPPUNIT_TEST( testAttributeFlags );
00145   CPPUNIT_TEST( testAttributeGraphic );
00146   CPPUNIT_TEST( testAttributeIOR );
00147   CPPUNIT_TEST( testAttributeInteger );
00148   CPPUNIT_TEST( testAttributeLocalID );
00149   CPPUNIT_TEST( testAttributeName );
00150   CPPUNIT_TEST( testAttributeOpened );
00151   CPPUNIT_TEST( testAttributeParameter );
00152   CPPUNIT_TEST( testAttributePersistentRef );
00153   CPPUNIT_TEST( testAttributePixMap );
00154   CPPUNIT_TEST( testAttributePythonObject );  
00155   CPPUNIT_TEST( testAttributeReal );
00156   CPPUNIT_TEST( testAttributeSelectable );
00157   CPPUNIT_TEST( testAttributeSequenceOfInteger );
00158   CPPUNIT_TEST( testAttributeSequenceOfReal );
00159   CPPUNIT_TEST( testAttributeStudyProperties );
00160   CPPUNIT_TEST( testAttributeTableOfInteger );  
00161   CPPUNIT_TEST( testAttributeTableOfReal );
00162   CPPUNIT_TEST( testAttributeTableOfString );
00163   CPPUNIT_TEST( testAttributeTarget );
00164   CPPUNIT_TEST( testAttributeTextColor );
00165   CPPUNIT_TEST( testAttributeTextHighlightColor );
00166   CPPUNIT_TEST( testAttributeTreeNode );
00167   CPPUNIT_TEST( testAttributeUserID );
00168   CPPUNIT_TEST( testChildIterator );
00169   CPPUNIT_TEST( testSComponent );  
00170   CPPUNIT_TEST( testSComponentIterator );
00171   CPPUNIT_TEST( testSObject );
00172   CPPUNIT_TEST( testStudy );
00173   CPPUNIT_TEST( testStudyBuilder ); 
00174   CPPUNIT_TEST( testChildIterator );
00175   CPPUNIT_TEST( testStudyManager );
00176   CPPUNIT_TEST( testUseCase );
00177   
00178   CPPUNIT_TEST_SUITE_END();
00179 
00180 public:
00181 
00182   virtual void setUp();
00183 };
00184 
00185 #endif