1 // Copyright (C) 2006 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #ifndef _SALOMEDSTEST_HXX_
22 #define _SALOMEDSTEST_HXX_
24 #include <cppunit/extensions/HelperMacros.h>
26 #include <SALOMEconfig.h>
27 #include CORBA_SERVER_HEADER(SALOMEDS)
29 class SALOMEDSTest : public CppUnit::TestFixture
31 CPPUNIT_TEST_SUITE( SALOMEDSTest );
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 );
74 CPPUNIT_TEST_SUITE_END();
79 virtual void tearDown();
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();
113 void testChildIterator();
114 void testSComponent();
115 void testSComponentIterator();
118 void testStudyBuilder();
119 void testStudyManager();
124 SALOMEDS::StudyManager_var _sm;
131 class SALOMEDSTest_Embedded : public SALOMEDSTest
133 CPPUNIT_TEST_SUITE( SALOMEDSTest_Embedded );
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 );
176 CPPUNIT_TEST_SUITE_END();
180 virtual void setUp();