Version: 8.3.0
SALOMEDSTest.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, 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 {
43  CPPUNIT_TEST_SUITE( SALOMEDSTest );
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( testStudyManager );
83  CPPUNIT_TEST( testUseCase );
84 
85 
86  CPPUNIT_TEST_SUITE_END();
87 
88 public:
89 
90  virtual void setUp();
91  virtual void tearDown();
92 
93  //Attributes
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();
123 
124  //Objects
125  void testChildIterator();
126  void testSComponent();
127  void testSComponentIterator();
128  void testSObject();
129  void testStudy();
130  void testStudyBuilder();
131  void testStudyManager();
132  void testUseCase();
133 
134 protected:
135 
136 SALOMEDS::StudyManager_var _sm;
137 CORBA::ORB_var _orb;
138 
139 };
140 
141 
142 
144 {
146 
147  //Attributes' tests
148 
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 );
187 
189 
190 public:
191 
192  virtual void setUp();
193 };
194 
195 #endif