ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/test/io/ifstrstreamTestCase.hpp
Revision: 1573
Committed: Fri Oct 15 15:37:40 2004 UTC (19 years, 10 months ago) by tim
File size: 1349 byte(s)
Log Message:
add ifstrstreamTestCase

File Contents

# User Rev Content
1 tim 1573 #ifndef TEST_IFSTRSTREAMTESTCASE_HPP
2     #define TEST_IFSTRSTREAMTESTCASE_HPP
3    
4     #include <cppunit/extensions/HelperMacros.h>
5     #include "math/SquareMatrix.hpp"
6    
7     using namespace oopse;
8    
9     typedef SquareMatrix<double, 3> SMat3x3;
10    
11     class IfstrstreamTestCase : public CPPUNIT_NS::TestFixture {
12     CPPUNIT_TEST_SUITE( IfstrstreamTestCase );
13     #ifndef IS_MPI
14     CPPUNIT_TEST(testConstructor);
15     CPPUNIT_TEST(testOpen);
16     CPPUNIT_TEST(testIs_open);
17     CPPUNIT_TEST(testClose);
18     #else
19     CPPUNIT_TEST(testMasterConstructor);
20     CPPUNIT_TEST(testMasterOpen);
21     CPPUNIT_TEST(testMasterIs_open);
22     CPPUNIT_TEST(testMasterClose);
23     CPPUNIT_TEST(testSlaveConstructor);
24     CPPUNIT_TEST(testSlaveOpen);
25     CPPUNIT_TEST(testSlaveIs_open);
26     CPPUNIT_TEST(testSlaveClose);
27     CPPUNIT_TEST_SUITE_END();
28     #endif
29    
30     public:
31     virtual void setUp();
32     virtual void tearDown();
33    
34     #ifndef IS_MPI
35     void testConstrutor();
36     void testOpen();
37     void testIs_open();
38     void testClose();
39    
40     #else
41     void testMasterConstrutor();
42     void testMasterOpen();
43     void testMasterIs_open();
44     void testMasterClose();
45     void testSlaveConstrutor();
46     void testSlaveOpen();
47     void testSlaveIs_open();
48     void testSlaveClose();
49     #endif
50     };
51    
52     #endif //TEST_IFSTRSTREAMTESTCASE_HPP

Properties

Name Value
svn:executable *