1 // Copyright (C) 2007-2013 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)
32 # if defined SALOMEDSTEST_EXPORTS || defined SALOMEDSTest_EXPORTS
33 # define SALOMEDSTEST_EXPORT __declspec( dllexport )
35 # define SALOMEDSTEST_EXPORT __declspec( dllimport )
38 # define SALOMEDSTEST_EXPORT
41 class SALOMEDSTEST_EXPORT SALOMEDSTest : public CppUnit::TestFixture
43 CPPUNIT_TEST_SUITE( SALOMEDSTest );
47 CPPUNIT_TEST( testAttributeComment );
48 CPPUNIT_TEST( testAttributeDrawable );
49 CPPUNIT_TEST( testAttributeExpandable );
50 CPPUNIT_TEST( testAttributeExternalFileDef );
51 CPPUNIT_TEST( testAttributeFileType );
52 CPPUNIT_TEST( testAttributeFlags );
53 CPPUNIT_TEST( testAttributeGraphic );
54 CPPUNIT_TEST( testAttributeIOR );
55 CPPUNIT_TEST( testAttributeInteger );
56 CPPUNIT_TEST( testAttributeLocalID );
57 CPPUNIT_TEST( testAttributeName );
58 CPPUNIT_TEST( testAttributeOpened );
59 CPPUNIT_TEST( testAttributeParameter );
60 CPPUNIT_TEST( testAttributePersistentRef );
61 CPPUNIT_TEST( testAttributePixMap );
62 CPPUNIT_TEST( testAttributePythonObject );
63 CPPUNIT_TEST( testAttributeReal );
64 CPPUNIT_TEST( testAttributeSelectable );
65 CPPUNIT_TEST( testAttributeSequenceOfInteger );
66 CPPUNIT_TEST( testAttributeSequenceOfReal );
67 CPPUNIT_TEST( testAttributeStudyProperties );
68 CPPUNIT_TEST( testAttributeTableOfInteger );
69 CPPUNIT_TEST( testAttributeTableOfReal );
70 CPPUNIT_TEST( testAttributeTableOfString );
71 CPPUNIT_TEST( testAttributeTarget );
72 CPPUNIT_TEST( testAttributeTextColor );
73 CPPUNIT_TEST( testAttributeTextHighlightColor );
74 CPPUNIT_TEST( testAttributeTreeNode );
75 CPPUNIT_TEST( testAttributeUserID );
76 CPPUNIT_TEST( testChildIterator );
77 CPPUNIT_TEST( testSComponent );
78 CPPUNIT_TEST( testSComponentIterator );
79 CPPUNIT_TEST( testSObject );
80 CPPUNIT_TEST( testStudy );
81 CPPUNIT_TEST( testStudyBuilder );
82 CPPUNIT_TEST( testStudyManager );
83 CPPUNIT_TEST( testUseCase );
86 CPPUNIT_TEST_SUITE_END();
91 virtual void tearDown();
94 void testAttributeComment();
95 void testAttributeDrawable();
96 void testAttributeExpandable();
97 void testAttributeExternalFileDef();
98 void testAttributeFileType();
99 void testAttributeFlags();
100 void testAttributeGraphic();
101 void testAttributeIOR();
102 void testAttributeInteger();
103 void testAttributeLocalID();
104 void testAttributeName();
105 void testAttributeOpened();
106 void testAttributeParameter();
107 void testAttributePersistentRef();
108 void testAttributePixMap();
109 void testAttributePythonObject();
110 void testAttributeReal();
111 void testAttributeSelectable();
112 void testAttributeSequenceOfInteger();
113 void testAttributeSequenceOfReal();
114 void testAttributeStudyProperties();
115 void testAttributeTableOfInteger();
116 void testAttributeTableOfReal();
117 void testAttributeTableOfString();
118 void testAttributeTarget();
119 void testAttributeTextColor();
120 void testAttributeTextHighlightColor();
121 void testAttributeTreeNode();
122 void testAttributeUserID();
125 void testChildIterator();
126 void testSComponent();
127 void testSComponentIterator();
130 void testStudyBuilder();
131 void testStudyManager();
136 SALOMEDS::StudyManager_var _sm;
143 class SALOMEDSTEST_EXPORT SALOMEDSTest_Embedded : public SALOMEDSTest
145 CPPUNIT_TEST_SUITE( SALOMEDSTest_Embedded );
149 CPPUNIT_TEST( testAttributeComment );
150 CPPUNIT_TEST( testAttributeDrawable );
151 CPPUNIT_TEST( testAttributeExpandable );
152 CPPUNIT_TEST( testAttributeExternalFileDef );
153 CPPUNIT_TEST( testAttributeFileType );
154 CPPUNIT_TEST( testAttributeFlags );
155 CPPUNIT_TEST( testAttributeGraphic );
156 CPPUNIT_TEST( testAttributeIOR );
157 CPPUNIT_TEST( testAttributeInteger );
158 CPPUNIT_TEST( testAttributeLocalID );
159 CPPUNIT_TEST( testAttributeName );
160 CPPUNIT_TEST( testAttributeOpened );
161 CPPUNIT_TEST( testAttributeParameter );
162 CPPUNIT_TEST( testAttributePersistentRef );
163 CPPUNIT_TEST( testAttributePixMap );
164 CPPUNIT_TEST( testAttributePythonObject );
165 CPPUNIT_TEST( testAttributeReal );
166 CPPUNIT_TEST( testAttributeSelectable );
167 CPPUNIT_TEST( testAttributeSequenceOfInteger );
168 CPPUNIT_TEST( testAttributeSequenceOfReal );
169 CPPUNIT_TEST( testAttributeStudyProperties );
170 CPPUNIT_TEST( testAttributeTableOfInteger );
171 CPPUNIT_TEST( testAttributeTableOfReal );
172 CPPUNIT_TEST( testAttributeTableOfString );
173 CPPUNIT_TEST( testAttributeTarget );
174 CPPUNIT_TEST( testAttributeTextColor );
175 CPPUNIT_TEST( testAttributeTextHighlightColor );
176 CPPUNIT_TEST( testAttributeTreeNode );
177 CPPUNIT_TEST( testAttributeUserID );
178 CPPUNIT_TEST( testChildIterator );
179 CPPUNIT_TEST( testSComponent );
180 CPPUNIT_TEST( testSComponentIterator );
181 CPPUNIT_TEST( testSObject );
182 CPPUNIT_TEST( testStudy );
183 CPPUNIT_TEST( testStudyBuilder );
184 CPPUNIT_TEST( testChildIterator );
185 CPPUNIT_TEST( testStudyManager );
186 CPPUNIT_TEST( testUseCase );
188 CPPUNIT_TEST_SUITE_END();
192 virtual void setUp();