/[escript]/trunk/finley/test/MeshAdapterTestCase.cpp
ViewVC logotype

Diff of /trunk/finley/test/MeshAdapterTestCase.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3596 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 3597 by caltinay, Thu Sep 15 06:03:17 2011 UTC
# Line 12  Line 12 
12  *******************************************************/  *******************************************************/
13    
14    
15    #include "MeshAdapterTestCase.h"
16    
17  #include "finley/CppAdapter/MeshAdapter.h"  #include "finley/CppAdapter/MeshAdapter.h"
18  #include "finley/CppAdapter/MeshAdapterFactory.h"  #include "finley/CppAdapter/MeshAdapterFactory.h"
19    
20  #include "escript/AbstractContinuousDomain.h"  #include "escript/AbstractContinuousDomain.h"
21    
22  #include "MeshAdapterTestCase.h"  #include <cppunit/TestCaller.h>
   
23  #include <boost/scoped_ptr.hpp>  #include <boost/scoped_ptr.hpp>
24    
25  using namespace escript;  using namespace escript;
26  using namespace finley;  using namespace finley;
27  using namespace CppUnitTest;  using namespace CppUnit;
28    
29  void MeshAdapterTestCase::setUp() {  void MeshAdapterTestCase::testAll()
30    //  {
31    // This is called before each test is run      // test construction of a mesh using the brick factory method
32        // boost::scoped_ptr<AbstractContinuousDomain> myMesh(brick());
33  }      brick();    // brick now returns a Domain_ptr which will auto delete
   
 void MeshAdapterTestCase::tearDown() {  
   //  
   // This is called after each test has been run  
   
 }  
   
 void MeshAdapterTestCase::testAll() {  
   //  
   // test construction of a mesh using the brick factory method  
 //   boost::scoped_ptr<AbstractContinuousDomain> myMesh(brick());  
     brick();        // brick now returns a Domain_ptr which will auto delete  
34  }  }
35    
36  TestSuite* MeshAdapterTestCase::suite ()  TestSuite* MeshAdapterTestCase::suite()
37  {  {
38    //      TestSuite *testSuite = new TestSuite("MeshAdapterTestCase");
   // create the suite of tests to perform.  
   TestSuite *testSuite = new TestSuite ("MeshAdapterTestCase");  
39    
40    testSuite->addTest (new TestCaller< MeshAdapterTestCase>("testAll",&MeshAdapterTestCase::testAll));      testSuite->addTest(new TestCaller<MeshAdapterTestCase>(
41    return testSuite;                  "testAll",&MeshAdapterTestCase::testAll));
42        return testSuite;
43  }  }
44    

Legend:
Removed from v.3596  
changed lines
  Added in v.3597

  ViewVC Help
Powered by ViewVC 1.1.26