1 |
jgs |
82 |
/* |
2 |
|
|
***************************************************************************** |
3 |
|
|
* * |
4 |
|
|
* COPYRIGHT ACcESS - All Rights Reserved * |
5 |
|
|
* * |
6 |
|
|
* This software is the property of ACcESS. No part of this code * |
7 |
|
|
* may be copied in any form or by any means without the expressed written * |
8 |
|
|
* consent of ACcESS. Copying, use or modification of this software * |
9 |
|
|
* by any unauthorised person is illegal unless that person has a software * |
10 |
|
|
* license agreement with ACcESS. * |
11 |
|
|
* * |
12 |
|
|
***************************************************************************** |
13 |
|
|
*/ |
14 |
|
|
|
15 |
jgs |
205 |
#include "MeshAdapter.h" |
16 |
|
|
#include "MeshAdapterFactory.h" |
17 |
jgs |
82 |
#include "escript/Data/AbstractContinuousDomain.h" |
18 |
|
|
|
19 |
|
|
#include "MeshAdapterTestCase.h" |
20 |
|
|
|
21 |
|
|
#include <boost/scoped_ptr.hpp> |
22 |
|
|
|
23 |
|
|
using namespace escript; |
24 |
|
|
using namespace finley; |
25 |
|
|
using namespace CppUnitTest; |
26 |
|
|
|
27 |
|
|
void MeshAdapterTestCase::setUp() { |
28 |
|
|
// |
29 |
|
|
// This is called before each test is run |
30 |
|
|
|
31 |
|
|
} |
32 |
|
|
|
33 |
|
|
void MeshAdapterTestCase::tearDown() { |
34 |
|
|
// |
35 |
|
|
// This is called after each test has been run |
36 |
|
|
|
37 |
|
|
} |
38 |
|
|
|
39 |
|
|
void MeshAdapterTestCase::testAll() { |
40 |
|
|
// |
41 |
|
|
// test construction of a mesh using the brick factory method |
42 |
|
|
boost::scoped_ptr<AbstractContinuousDomain> myMesh(brick()); |
43 |
|
|
} |
44 |
|
|
|
45 |
|
|
TestSuite* MeshAdapterTestCase::suite () |
46 |
|
|
{ |
47 |
|
|
// |
48 |
|
|
// create the suite of tests to perform. |
49 |
|
|
TestSuite *testSuite = new TestSuite ("MeshAdapterTestCase"); |
50 |
|
|
|
51 |
|
|
testSuite->addTest (new TestCaller< MeshAdapterTestCase>("testAll",&MeshAdapterTestCase::testAll)); |
52 |
|
|
return testSuite; |
53 |
|
|
} |
54 |
|
|
|