1 // Copyright (C) 2007-2016 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, or (at your option) any later version.
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( testUseCase );
85 CPPUNIT_TEST_SUITE_END();
90 virtual void tearDown();
93 void testAttributeComment();
94 void testAttributeDrawable();
95 void testAttributeExpandable();
96 void testAttributeExternalFileDef();
97 void testAttributeFileType();
98 void testAttributeFlags();
99 void testAttributeGraphic();
100 void testAttributeIOR();
101 void testAttributeInteger();
102 void testAttributeLocalID();
103 void testAttributeName();
104 void testAttributeOpened();
105 void testAttributeParameter();
106 void testAttributePersistentRef();
107 void testAttributePixMap();
108 void testAttributePythonObject();
109 void testAttributeReal();
110 void testAttributeSelectable();
111 void testAttributeSequenceOfInteger();
112 void testAttributeSequenceOfReal();
113 void testAttributeStudyProperties();
114 void testAttributeTableOfInteger();
115 void testAttributeTableOfReal();
116 void testAttributeTableOfString();
117 void testAttributeTarget();
118 void testAttributeTextColor();
119 void testAttributeTextHighlightColor();
120 void testAttributeTreeNode();
121 void testAttributeUserID();
124 void testChildIterator();
125 void testSComponent();
126 void testSComponentIterator();
129 void testStudyBuilder();
134 SALOMEDS::Study_var _study;
141 class SALOMEDSTEST_EXPORT SALOMEDSTest_Embedded : public SALOMEDSTest
143 CPPUNIT_TEST_SUITE( SALOMEDSTest_Embedded );
147 CPPUNIT_TEST( testAttributeComment );
148 CPPUNIT_TEST( testAttributeDrawable );
149 CPPUNIT_TEST( testAttributeExpandable );
150 CPPUNIT_TEST( testAttributeExternalFileDef );
151 CPPUNIT_TEST( testAttributeFileType );
152 CPPUNIT_TEST( testAttributeFlags );
153 CPPUNIT_TEST( testAttributeGraphic );
154 CPPUNIT_TEST( testAttributeIOR );
155 CPPUNIT_TEST( testAttributeInteger );
156 CPPUNIT_TEST( testAttributeLocalID );
157 CPPUNIT_TEST( testAttributeName );
158 CPPUNIT_TEST( testAttributeOpened );
159 CPPUNIT_TEST( testAttributeParameter );
160 CPPUNIT_TEST( testAttributePersistentRef );
161 CPPUNIT_TEST( testAttributePixMap );
162 CPPUNIT_TEST( testAttributePythonObject );
163 CPPUNIT_TEST( testAttributeReal );
164 CPPUNIT_TEST( testAttributeSelectable );
165 CPPUNIT_TEST( testAttributeSequenceOfInteger );
166 CPPUNIT_TEST( testAttributeSequenceOfReal );
167 CPPUNIT_TEST( testAttributeStudyProperties );
168 CPPUNIT_TEST( testAttributeTableOfInteger );
169 CPPUNIT_TEST( testAttributeTableOfReal );
170 CPPUNIT_TEST( testAttributeTableOfString );
171 CPPUNIT_TEST( testAttributeTarget );
172 CPPUNIT_TEST( testAttributeTextColor );
173 CPPUNIT_TEST( testAttributeTextHighlightColor );
174 CPPUNIT_TEST( testAttributeTreeNode );
175 CPPUNIT_TEST( testAttributeUserID );
176 CPPUNIT_TEST( testChildIterator );
177 CPPUNIT_TEST( testSComponent );
178 CPPUNIT_TEST( testSComponentIterator );
179 CPPUNIT_TEST( testSObject );
180 CPPUNIT_TEST( testStudy );
181 CPPUNIT_TEST( testStudyBuilder );
182 CPPUNIT_TEST( testChildIterator );
183 CPPUNIT_TEST( testUseCase );
185 CPPUNIT_TEST_SUITE_END();
189 virtual void setUp();