1 // Copyright (C) 2007-2012 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
23 #ifndef _SALOMEDSTEST_HXX_
24 #define _SALOMEDSTEST_HXX_
26 #include <cppunit/extensions/HelperMacros.h>
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(SALOMEDS)
31 class SALOMEDSTest : public CppUnit::TestFixture
33 CPPUNIT_TEST_SUITE( SALOMEDSTest );
37 CPPUNIT_TEST( testAttributeComment );
38 CPPUNIT_TEST( testAttributeDrawable );
39 CPPUNIT_TEST( testAttributeExpandable );
40 CPPUNIT_TEST( testAttributeExternalFileDef );
41 CPPUNIT_TEST( testAttributeFileType );
42 CPPUNIT_TEST( testAttributeFlags );
43 CPPUNIT_TEST( testAttributeGraphic );
44 CPPUNIT_TEST( testAttributeIOR );
45 CPPUNIT_TEST( testAttributeInteger );
46 CPPUNIT_TEST( testAttributeLocalID );
47 CPPUNIT_TEST( testAttributeName );
48 CPPUNIT_TEST( testAttributeOpened );
49 CPPUNIT_TEST( testAttributeParameter );
50 CPPUNIT_TEST( testAttributePersistentRef );
51 CPPUNIT_TEST( testAttributePixMap );
52 CPPUNIT_TEST( testAttributePythonObject );
53 CPPUNIT_TEST( testAttributeReal );
54 CPPUNIT_TEST( testAttributeSelectable );
55 CPPUNIT_TEST( testAttributeSequenceOfInteger );
56 CPPUNIT_TEST( testAttributeSequenceOfReal );
57 CPPUNIT_TEST( testAttributeStudyProperties );
58 CPPUNIT_TEST( testAttributeTableOfInteger );
59 CPPUNIT_TEST( testAttributeTableOfReal );
60 CPPUNIT_TEST( testAttributeTableOfString );
61 CPPUNIT_TEST( testAttributeTarget );
62 CPPUNIT_TEST( testAttributeTextColor );
63 CPPUNIT_TEST( testAttributeTextHighlightColor );
64 CPPUNIT_TEST( testAttributeTreeNode );
65 CPPUNIT_TEST( testAttributeUserID );
66 CPPUNIT_TEST( testChildIterator );
67 CPPUNIT_TEST( testSComponent );
68 CPPUNIT_TEST( testSComponentIterator );
69 CPPUNIT_TEST( testSObject );
70 CPPUNIT_TEST( testStudy );
71 CPPUNIT_TEST( testStudyBuilder );
72 CPPUNIT_TEST( testStudyManager );
73 CPPUNIT_TEST( testUseCase );
76 CPPUNIT_TEST_SUITE_END();
81 virtual void tearDown();
84 void testAttributeComment();
85 void testAttributeDrawable();
86 void testAttributeExpandable();
87 void testAttributeExternalFileDef();
88 void testAttributeFileType();
89 void testAttributeFlags();
90 void testAttributeGraphic();
91 void testAttributeIOR();
92 void testAttributeInteger();
93 void testAttributeLocalID();
94 void testAttributeName();
95 void testAttributeOpened();
96 void testAttributeParameter();
97 void testAttributePersistentRef();
98 void testAttributePixMap();
99 void testAttributePythonObject();
100 void testAttributeReal();
101 void testAttributeSelectable();
102 void testAttributeSequenceOfInteger();
103 void testAttributeSequenceOfReal();
104 void testAttributeStudyProperties();
105 void testAttributeTableOfInteger();
106 void testAttributeTableOfReal();
107 void testAttributeTableOfString();
108 void testAttributeTarget();
109 void testAttributeTextColor();
110 void testAttributeTextHighlightColor();
111 void testAttributeTreeNode();
112 void testAttributeUserID();
115 void testChildIterator();
116 void testSComponent();
117 void testSComponentIterator();
120 void testStudyBuilder();
121 void testStudyManager();
126 SALOMEDS::StudyManager_var _sm;
133 class SALOMEDSTest_Embedded : public SALOMEDSTest
135 CPPUNIT_TEST_SUITE( SALOMEDSTest_Embedded );
139 CPPUNIT_TEST( testAttributeComment );
140 CPPUNIT_TEST( testAttributeDrawable );
141 CPPUNIT_TEST( testAttributeExpandable );
142 CPPUNIT_TEST( testAttributeExternalFileDef );
143 CPPUNIT_TEST( testAttributeFileType );
144 CPPUNIT_TEST( testAttributeFlags );
145 CPPUNIT_TEST( testAttributeGraphic );
146 CPPUNIT_TEST( testAttributeIOR );
147 CPPUNIT_TEST( testAttributeInteger );
148 CPPUNIT_TEST( testAttributeLocalID );
149 CPPUNIT_TEST( testAttributeName );
150 CPPUNIT_TEST( testAttributeOpened );
151 CPPUNIT_TEST( testAttributeParameter );
152 CPPUNIT_TEST( testAttributePersistentRef );
153 CPPUNIT_TEST( testAttributePixMap );
154 CPPUNIT_TEST( testAttributePythonObject );
155 CPPUNIT_TEST( testAttributeReal );
156 CPPUNIT_TEST( testAttributeSelectable );
157 CPPUNIT_TEST( testAttributeSequenceOfInteger );
158 CPPUNIT_TEST( testAttributeSequenceOfReal );
159 CPPUNIT_TEST( testAttributeStudyProperties );
160 CPPUNIT_TEST( testAttributeTableOfInteger );
161 CPPUNIT_TEST( testAttributeTableOfReal );
162 CPPUNIT_TEST( testAttributeTableOfString );
163 CPPUNIT_TEST( testAttributeTarget );
164 CPPUNIT_TEST( testAttributeTextColor );
165 CPPUNIT_TEST( testAttributeTextHighlightColor );
166 CPPUNIT_TEST( testAttributeTreeNode );
167 CPPUNIT_TEST( testAttributeUserID );
168 CPPUNIT_TEST( testChildIterator );
169 CPPUNIT_TEST( testSComponent );
170 CPPUNIT_TEST( testSComponentIterator );
171 CPPUNIT_TEST( testSObject );
172 CPPUNIT_TEST( testStudy );
173 CPPUNIT_TEST( testStudyBuilder );
174 CPPUNIT_TEST( testChildIterator );
175 CPPUNIT_TEST( testStudyManager );
176 CPPUNIT_TEST( testUseCase );
178 CPPUNIT_TEST_SUITE_END();
182 virtual void setUp();