libMesh
tests
geom
node_test.C
Go to the documentation of this file.
1
#include <libmesh/node.h>
2
3
#include "../geom/point_test.h"
4
#include "../base/dof_object_test.h"
5
6
#include "
libmesh_cppunit.h
"
7
8
using namespace
libMesh
;
9
10
class
NodeTest
:
public
PointTestBase
<Node>,
public
DofObjectTest
<Node> {
11
public
:
12
CPPUNIT_TEST_SUITE(
NodeTest
);
13
14
// These tests currently use the Node copy constructor, which is marked
15
// as deprecated, so only instantiate them if deprecated code is allowed.
16
#ifdef LIBMESH_ENABLE_DEPRECATED
17
POINTTEST
18
DOFOBJECTTEST
19
#endif
20
21
CPPUNIT_TEST_SUITE_END();
22
23
private
:
24
25
Node
*
dof_object_instance
;
26
27
public
:
28
29
virtual
void
setUp
()
30
{
31
PointTestBase<Node>::setUp
();
32
33
dof_object_instance =
new
Node
(1,1,1);
34
DofObjectTest<Node>::setUp
(dof_object_instance);
35
}
36
37
virtual
void
tearDown
()
38
{
39
PointTestBase<Node>::tearDown
();
40
41
delete
dof_object_instance;
42
}
43
44
};
45
46
CPPUNIT_TEST_SUITE_REGISTRATION
(
NodeTest
);
PointTestBase::setUp
virtual void setUp()
Definition:
point_test.h:13
PointTestBase
Definition:
point_test.h:11
libMesh
The libMesh namespace provides an interface to certain functionality in the library.
Definition:
factoryfunction.C:55
NodeTest::tearDown
virtual void tearDown()
Definition:
node_test.C:37
DofObjectTest::setUp
void setUp(DerivedClass *derived_instance)
Definition:
dof_object_test.h:31
libMesh::Node
A Node is like a Point, but with more information.
Definition:
node.h:52
CPPUNIT_TEST_SUITE_REGISTRATION
CPPUNIT_TEST_SUITE_REGISTRATION(NodeTest)
NodeTest::setUp
virtual void setUp()
Definition:
node_test.C:29
PointTestBase::tearDown
virtual void tearDown()
Definition:
point_test.h:18
libmesh_cppunit.h
DofObjectTest
Definition:
dof_object_test.h:25
NodeTest::dof_object_instance
Node * dof_object_instance
Definition:
node_test.C:25
NodeTest
Definition:
node_test.C:10
Generated on Sat Jan 25 2020 12:07:06 for libMesh by
1.8.16