test.unittests
Class H5DatatypeTest

java.lang.Object
  extended by TestCase
      extended by test.unittests.H5DatatypeTest

public class H5DatatypeTest
extends TestCase

TestCase for H5Datatype.

This class tests all the public methods in H5ScalarDS class.

The test file contains the following objects.

 
        /dataset_byte            Dataset {50, 10}
        /dataset_comp            Dataset {50, 10}
        /dataset_enum            Dataset {50, 10}
        /dataset_float           Dataset {50, 10}
        /dataset_image           Dataset {50, 10}
        /dataset_int             Dataset {50, 10}
        /dataset_str             Dataset {50, 10}
        /g0                      Group
        /g0/dataset_comp         Dataset {50, 10}
        /g0/dataset_int          Dataset {50, 10}
        /g0/datatype_float       Type
        /g0/datatype_int         Type
        /g0/datatype_str         Type
        /g0/g00                  Group
        /g0/g00/dataset_float    Dataset {50, 10}
        /g0_attr                 Group
 

We use the following template to test all the methods:

What to test:


Constructor Summary
H5DatatypeTest(java.lang.String arg0)
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testClose()
          Test method for H5Datatype.close(int).
 void testFromNative()
          Test method for H5Datatype.fromNative(int).
 void testGetMetadata()
          Test method for H5Datatype.getMetadata().
 void testIsUnsigned()
          Test method for H5Datatype.isUnsigned().
 void testOpen()
          Test method for H5Datatype.open().
 void testRemoveMetadata()
          Test method for H5Datatype.removeMetadata(java.lang.Object).
 void testToNative()
          Test method for H5Datatype.toNative().
 void testWriteMetadata()
          Test method for H5Datatype.writeMetadata(java.lang.Object).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H5DatatypeTest

public H5DatatypeTest(java.lang.String arg0)
Parameters:
arg0 -
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testOpen

public final void testOpen()
Test method for H5Datatype.open().

What to test:


testClose

public final void testClose()
Test method for H5Datatype.close(int).

What to test:


testToNative

public final void testToNative()
Test method for H5Datatype.toNative().

What to test:


testFromNative

public final void testFromNative()
Test method for H5Datatype.fromNative(int).

What to test:


testIsUnsigned

public final void testIsUnsigned()
Test method for H5Datatype.isUnsigned().

What to test:


testGetMetadata

public final void testGetMetadata()
Test method for H5Datatype.getMetadata().

What to test:


testWriteMetadata

public final void testWriteMetadata()
Test method for H5Datatype.writeMetadata(java.lang.Object).

What to test:


testRemoveMetadata

public final void testRemoveMetadata()
Test method for H5Datatype.removeMetadata(java.lang.Object).

What to test: