Back to index

salome-med  6.5.0
MEDLoaderTest.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 #ifndef __MEDLOADERTEST_HXX__
00021 #define __MEDLOADERTEST_HXX__
00022 
00023 #include <cppunit/extensions/HelperMacros.h>
00024 
00025 namespace ParaMEDMEM
00026 {
00027   class MEDCouplingUMesh;
00028   class MEDCouplingFieldDouble;
00029 
00030   class MEDLoaderTest : public CppUnit::TestFixture
00031   {
00032     CPPUNIT_TEST_SUITE(MEDLoaderTest);
00033     CPPUNIT_TEST( testMesh1DRW );
00034     CPPUNIT_TEST( testMesh2DCurveRW );
00035     CPPUNIT_TEST( testMesh2DRW );
00036     CPPUNIT_TEST( testMesh3DSurfRW );
00037     CPPUNIT_TEST( testMesh3DRW );
00038     CPPUNIT_TEST( testFieldRW1 );
00039     CPPUNIT_TEST( testFieldRW2 );
00040     CPPUNIT_TEST( testFieldRW3 );
00041     CPPUNIT_TEST( testMultiMeshRW1 );
00042     CPPUNIT_TEST( testFieldProfilRW1 );
00043     CPPUNIT_TEST( testFieldNodeProfilRW1 );
00044     CPPUNIT_TEST( testFieldNodeProfilRW2 );
00045     CPPUNIT_TEST( testFieldGaussRW1 );
00046     CPPUNIT_TEST( testFieldGaussNERW1 );
00047     CPPUNIT_TEST( testLittleStrings1 );
00048     CPPUNIT_TEST( testSplitIntoNameAndUnit1 );
00049     CPPUNIT_TEST( testMesh3DSurfShuffleRW );
00050     CPPUNIT_TEST( testFieldShuffleRW1 );
00051     CPPUNIT_TEST( testMultiFieldShuffleRW1 );
00052     CPPUNIT_TEST( testWriteUMeshesRW1 );
00053     CPPUNIT_TEST( testMixCellAndNodesFieldRW1 );
00054     CPPUNIT_TEST( testGetAllFieldNamesRW1 );
00055     CPPUNIT_TEST_SUITE_END();
00056   public:
00057     void testMesh1DRW();
00058     void testMesh2DCurveRW();
00059     void testMesh2DRW();
00060     void testMesh3DSurfRW();
00061     void testMesh3DRW();
00062     void testFieldRW1();
00063     void testFieldRW2();
00064     void testFieldRW3();
00065     void testMultiMeshRW1();
00066     void testFieldProfilRW1();
00067     void testFieldNodeProfilRW1();
00068     void testFieldNodeProfilRW2();
00069     void testFieldGaussRW1();
00070     void testFieldGaussNERW1();
00071     void testLittleStrings1();
00072     void testSplitIntoNameAndUnit1();
00073     void testMesh3DSurfShuffleRW();
00074     void testFieldShuffleRW1();
00075     void testMultiFieldShuffleRW1();
00076     void testWriteUMeshesRW1();
00077     void testMixCellAndNodesFieldRW1();
00078     void testGetAllFieldNamesRW1();
00079   private:
00080     MEDCouplingUMesh *build1DMesh_1();
00081     MEDCouplingUMesh *build2DCurveMesh_1();
00082     MEDCouplingUMesh *build2DMesh_1();
00083     MEDCouplingUMesh *build2DMesh_2();
00084     MEDCouplingUMesh *build3DSurfMesh_1();
00085     MEDCouplingUMesh *build3DMesh_1();
00086     MEDCouplingUMesh *build3DMesh_2();
00087     MEDCouplingFieldDouble *buildVecFieldOnCells_1();
00088     MEDCouplingFieldDouble *buildVecFieldOnNodes_1();
00089     MEDCouplingFieldDouble *buildVecFieldOnGauss_1();
00090     MEDCouplingFieldDouble *buildVecFieldOnGaussNE_1();
00091   };
00092 }
00093 
00094 #endif