~vcs-imports/escript-finley/trunk

« back to all changes in this revision

Viewing changes to dudley/test/MeshAdapterTestCase.cpp

  • Committer: jfenwick
  • Date: 2010-10-11 01:48:14 UTC
  • Revision ID: svn-v4:77569008-7704-0410-b7a0-a92fef0b09fd:trunk:3259
Merging dudley and scons updates from branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*******************************************************
 
3
*
 
4
* Copyright (c) 2003-2010 by University of Queensland
 
5
* Earth Systems Science Computational Center (ESSCC)
 
6
* http://www.uq.edu.au/esscc
 
7
*
 
8
* Primary Business: Queensland, Australia
 
9
* Licensed under the Open Software License version 3.0
 
10
* http://www.opensource.org/licenses/osl-3.0.php
 
11
*
 
12
*******************************************************/
 
13
 
 
14
 
 
15
#include "dudley/CppAdapter/MeshAdapter.h"
 
16
#include "dudley/CppAdapter/MeshAdapterFactory.h"
 
17
 
 
18
#include "escript/AbstractContinuousDomain.h"
 
19
 
 
20
#include "MeshAdapterTestCase.h"
 
21
 
 
22
#include <boost/scoped_ptr.hpp>
 
23
 
 
24
using namespace escript;
 
25
using namespace dudley;
 
26
using namespace CppUnitTest;
 
27
 
 
28
void MeshAdapterTestCase::setUp() {
 
29
  //
 
30
  // This is called before each test is run
 
31
 
 
32
}
 
33
 
 
34
void MeshAdapterTestCase::tearDown() {
 
35
  //
 
36
  // This is called after each test has been run
 
37
 
 
38
}
 
39
 
 
40
void MeshAdapterTestCase::testAll() {
 
41
  //
 
42
  // test construction of a mesh using the brick factory method
 
43
//   boost::scoped_ptr<AbstractContinuousDomain> myMesh(brick());
 
44
        brick();                // brick now returns a Domain_ptr which will auto delete
 
45
}
 
46
 
 
47
TestSuite* MeshAdapterTestCase::suite ()
 
48
{
 
49
  //
 
50
  // create the suite of tests to perform.
 
51
  TestSuite *testSuite = new TestSuite ("MeshAdapterTestCase");
 
52
 
 
53
  testSuite->addTest (new TestCaller< MeshAdapterTestCase>("testAll",&MeshAdapterTestCase::testAll));
 
54
  return testSuite;
 
55
}
 
56