1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef __MEDLOADERTEST_HXX__
21 #define __MEDLOADERTEST_HXX__
23 #include <cppunit/extensions/HelperMacros.h>
27 class MEDCouplingUMesh;
28 class MEDCouplingFieldDouble;
30 class MEDLoaderTest : public CppUnit::TestFixture
32 CPPUNIT_TEST_SUITE(MEDLoaderTest);
33 CPPUNIT_TEST( testMesh1DRW );
34 CPPUNIT_TEST( testMesh2DCurveRW );
35 CPPUNIT_TEST( testMesh2DRW );
36 CPPUNIT_TEST( testMesh3DSurfRW );
37 CPPUNIT_TEST( testMesh3DRW );
38 CPPUNIT_TEST( testFieldRW1 );
39 CPPUNIT_TEST( testFieldRW2 );
40 CPPUNIT_TEST( testFieldRW3 );
41 CPPUNIT_TEST( testMultiMeshRW1 );
42 CPPUNIT_TEST( testFieldProfilRW1 );
43 CPPUNIT_TEST( testFieldNodeProfilRW1 );
44 CPPUNIT_TEST( testFieldNodeProfilRW2 );
45 CPPUNIT_TEST( testFieldGaussRW1 );
46 CPPUNIT_TEST( testFieldGaussNERW1 );
47 CPPUNIT_TEST( testLittleStrings1 );
48 CPPUNIT_TEST( testSplitIntoNameAndUnit1 );
49 CPPUNIT_TEST( testMesh3DSurfShuffleRW );
50 CPPUNIT_TEST( testFieldShuffleRW1 );
51 CPPUNIT_TEST( testMultiFieldShuffleRW1 );
52 CPPUNIT_TEST( testWriteUMeshesRW1 );
53 CPPUNIT_TEST( testMixCellAndNodesFieldRW1 );
54 CPPUNIT_TEST( testGetAllFieldNamesRW1 );
55 CPPUNIT_TEST_SUITE_END();
58 void testMesh2DCurveRW();
60 void testMesh3DSurfRW();
65 void testMultiMeshRW1();
66 void testFieldProfilRW1();
67 void testFieldNodeProfilRW1();
68 void testFieldNodeProfilRW2();
69 void testFieldGaussRW1();
70 void testFieldGaussNERW1();
71 void testLittleStrings1();
72 void testSplitIntoNameAndUnit1();
73 void testMesh3DSurfShuffleRW();
74 void testFieldShuffleRW1();
75 void testMultiFieldShuffleRW1();
76 void testWriteUMeshesRW1();
77 void testMixCellAndNodesFieldRW1();
78 void testGetAllFieldNamesRW1();
80 MEDCouplingUMesh *build1DMesh_1();
81 MEDCouplingUMesh *build2DCurveMesh_1();
82 MEDCouplingUMesh *build2DMesh_1();
83 MEDCouplingUMesh *build2DMesh_2();
84 MEDCouplingUMesh *build3DSurfMesh_1();
85 MEDCouplingUMesh *build3DMesh_1();
86 MEDCouplingUMesh *build3DMesh_2();
87 MEDCouplingFieldDouble *buildVecFieldOnCells_1();
88 MEDCouplingFieldDouble *buildVecFieldOnNodes_1();
89 MEDCouplingFieldDouble *buildVecFieldOnGauss_1();
90 MEDCouplingFieldDouble *buildVecFieldOnGaussNE_1();