Version: 9.15.0
SALOMEDSTest.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2025 CEA, EDF, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 
23 #ifndef _SALOMEDSTEST_HXX_
24 #define _SALOMEDSTEST_HXX_
25 
26 #include <cppunit/extensions/HelperMacros.h>
27 
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(SALOMEDS)
30 
31 #ifdef WIN32
32 # if defined SALOMEDSTEST_EXPORTS || defined SALOMEDSTest_EXPORTS
33 # define SALOMEDSTEST_EXPORT __declspec( dllexport )
34 # else
35 # define SALOMEDSTEST_EXPORT __declspec( dllimport )
36 # endif
37 #else
38 # define SALOMEDSTEST_EXPORT
39 #endif
40 
41 class SALOMEDSTEST_EXPORT SALOMEDSTest : public CppUnit::TestFixture
42 {
44 
45  //Attributes' tests
46 
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 );
83 
84 
86 
87 public:
88 
89  virtual void setUp();
90  virtual void tearDown();
91 
92  //Attributes
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();
122 
123  //Objects
124  void testChildIterator();
125  void testSComponent();
126  void testSComponentIterator();
127  void testSObject();
128  void testStudy();
129  void testStudyBuilder();
130  void testUseCase();
131 
132 protected:
133 
134 SALOMEDS::Study_var _study;
135 CORBA::ORB_var _orb;
136 
137 };
138 
139 
140 
142 {
144 
145  //Attributes' tests
146 
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 );
184 
186 
187 public:
188 
189  virtual void setUp();
190 };
191 
192 #endif
#define SALOMEDSTEST_EXPORT
Definition: SALOMEDSTest.hxx:38
Definition: SALOMEDSTest.hxx:142
CPPUNIT_TEST(testAttributeFileType)
CPPUNIT_TEST(testAttributeSequenceOfReal)
CPPUNIT_TEST(testAttributeExternalFileDef)
CPPUNIT_TEST(testAttributeExpandable)
CPPUNIT_TEST(testAttributeUserID)
CPPUNIT_TEST(testSComponent)
CPPUNIT_TEST(testAttributeTableOfString)
CPPUNIT_TEST(testAttributeLocalID)
CPPUNIT_TEST_SUITE(SALOMEDSTest_Embedded)
CPPUNIT_TEST(testUseCase)
CPPUNIT_TEST(testAttributeSequenceOfInteger)
CPPUNIT_TEST(testAttributeDrawable)
CPPUNIT_TEST(testAttributeParameter)
CPPUNIT_TEST(testChildIterator)
CPPUNIT_TEST(testAttributeTreeNode)
CPPUNIT_TEST(testAttributeOpened)
CPPUNIT_TEST(testAttributeFlags)
CPPUNIT_TEST(testAttributeSelectable)
CPPUNIT_TEST(testAttributePythonObject)
CPPUNIT_TEST(testAttributePersistentRef)
CPPUNIT_TEST(testAttributeStudyProperties)
CPPUNIT_TEST(testAttributeTextHighlightColor)
CPPUNIT_TEST(testSObject)
CPPUNIT_TEST(testAttributeName)
CPPUNIT_TEST(testAttributePixMap)
CPPUNIT_TEST(testAttributeInteger)
CPPUNIT_TEST(testAttributeIOR)
CPPUNIT_TEST(testAttributeTarget)
CPPUNIT_TEST(testAttributeTableOfReal)
CPPUNIT_TEST(testSComponentIterator)
CPPUNIT_TEST(testAttributeTextColor)
CPPUNIT_TEST(testAttributeGraphic)
CPPUNIT_TEST(testAttributeTableOfInteger)
CPPUNIT_TEST(testStudyBuilder)
CPPUNIT_TEST(testAttributeReal)
CPPUNIT_TEST(testAttributeComment)
Definition: SALOMEDSTest.hxx:42
CPPUNIT_TEST(testAttributeSelectable)
CPPUNIT_TEST(testAttributeSequenceOfInteger)
CPPUNIT_TEST(testAttributeComment)
CPPUNIT_TEST(testAttributePixMap)
SALOMEDS::Study_var _study
Definition: SALOMEDSTest.hxx:134
CPPUNIT_TEST(testAttributeParameter)
CPPUNIT_TEST(testAttributeTextHighlightColor)
CPPUNIT_TEST(testAttributeTableOfReal)
CPPUNIT_TEST(testAttributeStudyProperties)
CPPUNIT_TEST(testAttributeFileType)
CPPUNIT_TEST(testAttributeTextColor)
CPPUNIT_TEST(testAttributeName)
CPPUNIT_TEST(testAttributeLocalID)
CPPUNIT_TEST(testChildIterator)
CPPUNIT_TEST(testAttributePythonObject)
CPPUNIT_TEST(testSObject)
CPPUNIT_TEST(testStudy)
CPPUNIT_TEST(testAttributeTreeNode)
CPPUNIT_TEST(testAttributeTableOfString)
CPPUNIT_TEST(testSComponent)
CPPUNIT_TEST(testUseCase)
CPPUNIT_TEST(testAttributeUserID)
CPPUNIT_TEST(testAttributeOpened)
CPPUNIT_TEST(testAttributeInteger)
CPPUNIT_TEST(testAttributeReal)
CPPUNIT_TEST_SUITE(SALOMEDSTest)
CPPUNIT_TEST(testAttributeGraphic)
CPPUNIT_TEST(testAttributePersistentRef)
CPPUNIT_TEST(testAttributeTarget)
CPPUNIT_TEST(testStudyBuilder)
CPPUNIT_TEST(testAttributeSequenceOfReal)
CPPUNIT_TEST(testAttributeIOR)
CPPUNIT_TEST(testAttributeTableOfInteger)
CPPUNIT_TEST(testAttributeExternalFileDef)
CPPUNIT_TEST(testAttributeDrawable)
CORBA::ORB_var _orb
Definition: SALOMEDSTest.hxx:135
CPPUNIT_TEST(testAttributeFlags)
CPPUNIT_TEST(testSComponentIterator)
CPPUNIT_TEST_SUITE_END()
CPPUNIT_TEST(testAttributeExpandable)