Salome HOME
b5d848b468a034bd34d23eb6ac9c5c3037cb538c
[modules/hexablock.git] / src / TEST_CPP / ModelTest.hxx
1 // Copyright (C) 2009-2023  CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef __ModelTest__
21 #define __ModelTest__
22
23 #include "HexTest.hxx"
24
25 #include <cppunit/TestFixture.h>
26 #include <cppunit/extensions/HelperMacros.h>
27
28 #include "hexa_base.hxx"
29 // #include "Hex.hxx"
30 #include "HexDocument.hxx"
31 #include "HexEltBase.hxx"
32
33 class HEXABLOCKTEST_EXPORT ModelTest : public CppUnit::TestFixture
34 {
35     CPPUNIT_TEST_SUITE( ModelTest );
36     CPPUNIT_TEST( myTest_croix);
37     CPPUNIT_TEST( Test_croix);
38     CPPUNIT_TEST( Test_disconnect);
39     CPPUNIT_TEST( Test_joint);
40     CPPUNIT_TEST( Test_prism);
41     CPPUNIT_TEST( Test_cylinder);
42     CPPUNIT_TEST( Test_find);
43     CPPUNIT_TEST( Test_lorraine);
44     CPPUNIT_TEST( Test_propagation);
45     CPPUNIT_TEST( Test_cartesi1);
46     CPPUNIT_TEST( Test_decoupage);
47     CPPUNIT_TEST( Test_grille_cyl);
48     CPPUNIT_TEST( Test_pipes);
49     CPPUNIT_TEST( Test_separ);
50     CPPUNIT_TEST( Test_clone);
51     CPPUNIT_TEST( Test_deux_cyl);
52     CPPUNIT_TEST( Test_hexa1);
53     CPPUNIT_TEST( Test_prism2);
54     CPPUNIT_TEST( Test_transfo);
55     CPPUNIT_TEST( Test_hexa1);
56     CPPUNIT_TEST( Test_move);
57     CPPUNIT_TEST( Test_gen_xml);
58     CPPUNIT_TEST( Test_relecture);
59     CPPUNIT_TEST_SUITE_END();
60   
61   public:
62     ModelTest(void);
63     ~ModelTest(void);
64     //~ Call before tests
65     void setUp(void) {}
66     //~ Call after tests
67     void tearDown(void) {}
68
69 //     void Test_bielle();
70     void myTest_croix();
71     void Test_croix();
72     void Test_disconnect();
73     void Test_joint();
74     void Test_prism();
75 //     void Test_bride();
76     void Test_cylinder();
77     void Test_find();
78     void Test_lorraine();
79     void Test_propagation();
80 //     void Test_bug1();
81 //     void Test_debride();
82     void Test_gen_xml();
83     void Test_move();
84     void Test_relecture();
85     void Test_cartesi1();
86     void Test_decoupage();
87     void Test_grille_cyl();
88     void Test_pipes();
89     void Test_separ();
90     void Test_clone();
91     void Test_deux_cyl();
92     void Test_hexa1();
93     void Test_prism2();
94     void Test_transfo();
95
96   private:
97     int _afficher (cpchar nom, Hex::EltBase* elt);
98     void _print_propagations (Hex::Document* doc);
99 //     HEXA_NS::Hex *_myHexEngine;
100 //     HEXA_NS::Document *_myDoc;
101
102 };
103
104 #endif