1 |
jgs |
150 |
/* |
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 |
|
|
#include "escript/Data/AbstractContinuousDomain.h" |
16 |
|
|
#include "bruce/Bruce/BruceFactory.h" |
17 |
|
|
#include "BruceFactoryTestCase.h" |
18 |
|
|
|
19 |
|
|
using namespace CppUnitTest; |
20 |
|
|
|
21 |
|
|
using namespace escript; |
22 |
|
|
using namespace bruce; |
23 |
|
|
|
24 |
|
|
void BruceFactoryTestCase::setUp() { |
25 |
|
|
// |
26 |
|
|
// This is called before each test is run |
27 |
|
|
|
28 |
|
|
} |
29 |
|
|
|
30 |
|
|
void BruceFactoryTestCase::tearDown() { |
31 |
|
|
// |
32 |
|
|
// This is called after each test has been run |
33 |
|
|
|
34 |
|
|
} |
35 |
|
|
|
36 |
|
|
void BruceFactoryTestCase::testAll() { |
37 |
|
|
// |
38 |
|
|
// The test code may be entered here |
39 |
|
|
// There is nothing special about the function name, it may be renamed to |
40 |
|
|
// something more suitable. |
41 |
|
|
// As many test methods as desired may be added. |
42 |
|
|
|
43 |
|
|
AbstractContinuousDomain* brick; |
44 |
|
|
AbstractContinuousDomain* rectangle; |
45 |
|
|
|
46 |
|
|
} |
47 |
|
|
|
48 |
|
|
TestSuite* BruceFactoryTestCase::suite () |
49 |
|
|
{ |
50 |
|
|
// |
51 |
|
|
// create the suite of tests to perform. |
52 |
|
|
TestSuite *testSuite = new TestSuite ("BruceFactoryTestCase"); |
53 |
|
|
|
54 |
|
|
testSuite->addTest (new TestCaller< BruceFactoryTestCase>("testAll",&BruceFactoryTestCase::testAll)); |
55 |
|
|
return testSuite; |
56 |
|
|
} |