]> SALOME platform Git repositories - modules/geom.git/blob - src/XAO/tests/FieldTest.hxx
Salome HOME
Merge from BR_V7_main_Field branch (02/09/2013)
[modules/geom.git] / src / XAO / tests / FieldTest.hxx
1 #ifndef __XAO_FIELD_TEST_HXX__
2 #define __XAO_FIELD_TEST_HXX__
3
4 #include <cppunit/extensions/HelperMacros.h>
5
6 #include "../XAO_Xao.hxx"
7 #include "../XAO_Field.hxx"
8 #include "../XAO_Step.hxx"
9
10 namespace XAO
11 {
12     class FieldTest: public CppUnit::TestFixture
13     {
14         CPPUNIT_TEST_SUITE(FieldTest);
15         CPPUNIT_TEST(testBooleanField);
16         CPPUNIT_TEST(testDoubleField);
17         CPPUNIT_TEST(testIntegerField);
18         CPPUNIT_TEST(testStringField);
19         CPPUNIT_TEST(testBooleanStep);
20         CPPUNIT_TEST(testIntegerStep);
21         CPPUNIT_TEST(testDoubleStep);
22         CPPUNIT_TEST(testStringStep);
23         CPPUNIT_TEST(testBooleanStepValues);
24         CPPUNIT_TEST(testIntegerStepValues);
25         CPPUNIT_TEST(testDoubleStepValues);
26         CPPUNIT_TEST(testStringStepValues);
27         CPPUNIT_TEST(testSetComponents);
28         CPPUNIT_TEST_SUITE_END();
29
30     public:
31         void setUp();
32         void tearDown();
33         void cleanUp();
34
35         Field* testField(XAO::Type type);
36         void testBooleanField();
37         void testIntegerField();
38         void testDoubleField();
39         void testStringField();
40
41         void testStep(XAO::Type type, Step* step);
42         void testBooleanStep();
43         void testIntegerStep();
44         void testDoubleStep();
45         void testStringStep();
46
47         void testBooleanStepValues();
48         void testIntegerStepValues();
49         void testDoubleStepValues();
50         void testStringStepValues();
51         void testSetComponents();
52     };
53 }
54
55 #endif // __XAO_FIELD_TEST_HXX__