Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/yacs.git] / src / SALOMEDS / Test / SALOMEDSTest.hxx
1 // Copyright (C) 2006  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20
21 #ifndef _SALOMEDSTEST_HXX_
22 #define _SALOMEDSTEST_HXX_
23
24 #include <cppunit/extensions/HelperMacros.h>
25
26 #include <SALOMEconfig.h>
27 #include CORBA_SERVER_HEADER(SALOMEDS)
28
29 class SALOMEDSTest : public CppUnit::TestFixture
30 {
31   CPPUNIT_TEST_SUITE( SALOMEDSTest );
32
33   //Attributes' tests
34   
35   CPPUNIT_TEST( testAttributeComment );
36   CPPUNIT_TEST( testAttributeDrawable );
37   CPPUNIT_TEST( testAttributeExpandable );
38   CPPUNIT_TEST( testAttributeExternalFileDef );
39   CPPUNIT_TEST( testAttributeFileType );
40   CPPUNIT_TEST( testAttributeFlags );
41   CPPUNIT_TEST( testAttributeGraphic );
42   CPPUNIT_TEST( testAttributeIOR );
43   CPPUNIT_TEST( testAttributeInteger );
44   CPPUNIT_TEST( testAttributeLocalID );
45   CPPUNIT_TEST( testAttributeName );
46   CPPUNIT_TEST( testAttributeOpened );
47   CPPUNIT_TEST( testAttributeParameter );  
48   CPPUNIT_TEST( testAttributePersistentRef );
49   CPPUNIT_TEST( testAttributePixMap );
50   CPPUNIT_TEST( testAttributePythonObject );
51   CPPUNIT_TEST( testAttributeReal );
52   CPPUNIT_TEST( testAttributeSelectable );
53   CPPUNIT_TEST( testAttributeSequenceOfInteger );
54   CPPUNIT_TEST( testAttributeSequenceOfReal );
55   CPPUNIT_TEST( testAttributeStudyProperties );
56   CPPUNIT_TEST( testAttributeTableOfInteger );  
57   CPPUNIT_TEST( testAttributeTableOfReal );  
58   CPPUNIT_TEST( testAttributeTableOfString );
59   CPPUNIT_TEST( testAttributeTarget );
60   CPPUNIT_TEST( testAttributeTextColor );
61   CPPUNIT_TEST( testAttributeTextHighlightColor );
62   CPPUNIT_TEST( testAttributeTreeNode );
63   CPPUNIT_TEST( testAttributeUserID );
64   CPPUNIT_TEST( testChildIterator );
65   CPPUNIT_TEST( testSComponent );
66   CPPUNIT_TEST( testSComponentIterator );
67   CPPUNIT_TEST( testSObject );
68   CPPUNIT_TEST( testStudy );  
69   CPPUNIT_TEST( testStudyBuilder );
70   CPPUNIT_TEST( testStudyManager );
71   CPPUNIT_TEST( testUseCase );
72
73
74   CPPUNIT_TEST_SUITE_END();
75
76 public:
77
78   virtual void setUp();
79   virtual void tearDown();
80
81   //Attributes
82   void testAttributeComment();
83   void testAttributeDrawable();
84   void testAttributeExpandable();
85   void testAttributeExternalFileDef();
86   void testAttributeFileType();
87   void testAttributeFlags();
88   void testAttributeGraphic();
89   void testAttributeIOR();
90   void testAttributeInteger();
91   void testAttributeLocalID();
92   void testAttributeName();
93   void testAttributeOpened();
94   void testAttributeParameter();
95   void testAttributePersistentRef();
96   void testAttributePixMap();
97   void testAttributePythonObject();
98   void testAttributeReal();
99   void testAttributeSelectable();
100   void testAttributeSequenceOfInteger();
101   void testAttributeSequenceOfReal();
102   void testAttributeStudyProperties();
103   void testAttributeTableOfInteger();
104   void testAttributeTableOfReal();
105   void testAttributeTableOfString();
106   void testAttributeTarget();
107   void testAttributeTextColor();
108   void testAttributeTextHighlightColor();
109   void testAttributeTreeNode();
110   void testAttributeUserID(); 
111
112   //Objects
113   void testChildIterator();
114   void testSComponent();
115   void testSComponentIterator();
116   void testSObject();
117   void testStudy();
118   void testStudyBuilder();
119   void testStudyManager();
120   void testUseCase();
121
122 protected:
123
124 SALOMEDS::StudyManager_var _sm;
125 CORBA::ORB_var             _orb;
126                 
127 };
128
129
130
131 class SALOMEDSTest_Embedded : public SALOMEDSTest
132 {
133   CPPUNIT_TEST_SUITE( SALOMEDSTest_Embedded );
134
135   //Attributes' tests
136   
137   CPPUNIT_TEST( testAttributeComment );
138   CPPUNIT_TEST( testAttributeDrawable );
139   CPPUNIT_TEST( testAttributeExpandable );
140   CPPUNIT_TEST( testAttributeExternalFileDef );
141   CPPUNIT_TEST( testAttributeFileType );
142   CPPUNIT_TEST( testAttributeFlags );
143   CPPUNIT_TEST( testAttributeGraphic );
144   CPPUNIT_TEST( testAttributeIOR );
145   CPPUNIT_TEST( testAttributeInteger );
146   CPPUNIT_TEST( testAttributeLocalID );
147   CPPUNIT_TEST( testAttributeName );
148   CPPUNIT_TEST( testAttributeOpened );
149   CPPUNIT_TEST( testAttributeParameter );
150   CPPUNIT_TEST( testAttributePersistentRef );
151   CPPUNIT_TEST( testAttributePixMap );
152   CPPUNIT_TEST( testAttributePythonObject );  
153   CPPUNIT_TEST( testAttributeReal );
154   CPPUNIT_TEST( testAttributeSelectable );
155   CPPUNIT_TEST( testAttributeSequenceOfInteger );
156   CPPUNIT_TEST( testAttributeSequenceOfReal );
157   CPPUNIT_TEST( testAttributeStudyProperties );
158   CPPUNIT_TEST( testAttributeTableOfInteger );  
159   CPPUNIT_TEST( testAttributeTableOfReal );
160   CPPUNIT_TEST( testAttributeTableOfString );
161   CPPUNIT_TEST( testAttributeTarget );
162   CPPUNIT_TEST( testAttributeTextColor );
163   CPPUNIT_TEST( testAttributeTextHighlightColor );
164   CPPUNIT_TEST( testAttributeTreeNode );
165   CPPUNIT_TEST( testAttributeUserID );
166   CPPUNIT_TEST( testChildIterator );
167   CPPUNIT_TEST( testSComponent );  
168   CPPUNIT_TEST( testSComponentIterator );
169   CPPUNIT_TEST( testSObject );
170   CPPUNIT_TEST( testStudy );
171   CPPUNIT_TEST( testStudyBuilder ); 
172   CPPUNIT_TEST( testChildIterator );
173   CPPUNIT_TEST( testStudyManager );
174   CPPUNIT_TEST( testUseCase );
175   
176   CPPUNIT_TEST_SUITE_END();
177
178 public:
179
180   virtual void setUp();
181 };
182
183 #endif