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