summaryrefslogtreecommitdiff
path: root/cad/plugins/HDF5_SimResults/src/HDF5_SimResultsTest.h
blob: 59fa812550029b0852391bacff5b4223c87d32ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

// Copyright 2006-2007 Nanorex, Inc.  See LICENSE file for details. 

#ifndef NE1_HDF5_SIMRESULTSTEST_H
#define NE1_HDF5_SIMRESULTSTEST_H

#include <string>

#include <cppunit/extensions/HelperMacros.h>

#include "Nanorex/HDF5_SimResults.h"
using namespace Nanorex;


/* CLASS: HDF5_SimResultsTest */
class HDF5_SimResultsTest : public CPPUNIT_NS::TestFixture {

	CPPUNIT_TEST_SUITE(HDF5_SimResultsTest);
	
	CPPUNIT_TEST(openDataStore);
	CPPUNIT_TEST(getSetName);
	CPPUNIT_TEST(getSetDescription);
	CPPUNIT_TEST(getSetNotes);

	CPPUNIT_TEST(getSetParameters);
	CPPUNIT_TEST(getSetFilePath);
	
	CPPUNIT_TEST(getSetRunResult);
	CPPUNIT_TEST(getSetStartTime);
	CPPUNIT_TEST(getSetCPU_RunningTime);
	CPPUNIT_TEST(getSetWallRunningTime);
	CPPUNIT_TEST(getSetResults);
	
	CPPUNIT_TEST(getAddRemoveFrameSet);
	CPPUNIT_TEST(getSetAggregationMode);
	CPPUNIT_TEST(getSetStepsPerFrame);
	
	CPPUNIT_TEST(getAddRemoveFrame);
	CPPUNIT_TEST(getSetAtomIds);
	CPPUNIT_TEST(getSetAtomicNumbers);
	CPPUNIT_TEST(getSetAtomPositions);
	CPPUNIT_TEST(getSetAtomVelocities);
	CPPUNIT_TEST(getSetBonds);
	CPPUNIT_TEST(getSetTotalEnergy);
	CPPUNIT_TEST(getSetIdealTemperature);
	CPPUNIT_TEST(getSetPressure);
	
	CPPUNIT_TEST_SUITE_END();

	public:
		void setUp();
		void tearDown();

		void openDataStore();
		void getSetName();
		void getSetDescription();
		void getSetNotes();
		
		void getSetParameters();
		void getSetFilePath();
		
		void getSetRunResult();
		void getSetStartTime();
		void getSetCPU_RunningTime();
		void getSetWallRunningTime();
		void getSetResults();
		
		void getAddRemoveFrameSet();
		void getSetAggregationMode();
		void getSetStepsPerFrame();
		
		void getAddRemoveFrame();
		void getSetAtomIds();
		void getSetAtomicNumbers();
		void getSetAtomPositions();
		void getSetAtomVelocities();
		void getSetBonds();
		void getSetTotalEnergy();
		void getSetIdealTemperature();
		void getSetPressure();
		
	private:
		HDF5_SimResults* simResults;
};

#endif