org.jboss.test.cmp2.lob
Class LOBUnitTestCase

java.lang.Object
  extended byEJBTestCase
      extended byorg.jboss.test.cmp2.lob.LOBUnitTestCase

public class LOBUnitTestCase
extends EJBTestCase

A test suite to check JBoss data mapping to/from Large Binary Objects (LOBs).

See Also:
net.sourceforge.junitejb.EJBTestCase, Serialized Form

Constructor Summary
LOBUnitTestCase(java.lang.String name)
           
 
Method Summary
 void setUpEJB()
          Lookup the LOB lobHome and cache it.
static Test suite()
           
 void tearDownEJB()
          Remove data references so that they can be garbage collected if needed.
 void testBinaryDataField()
           
 void testBinaryLoad()
          Attempt to load each entity in turn and verify that they contain the binary data with which they were created.
 void testCleanGetValueHolder()
           
 void testCreate0()
          Attempt to create a LOB entity with NULL attributes.
 void testCreate1()
          Attempt to create a LOB entity with the small dataset.
 void testCreate2()
          Attempt to create a LOB entity with a large text object and a small binary object.
 void testCreate3()
          Attempt to create a LOB entity with the small text object and a large binary object.
 void testCreate4()
          Attempt to create a LOB entity with the large dataset.
 void testListCMPField()
           
 void testLoad1()
          Verify the data set created by testCreate1().
 void testLoad2()
          Verify the data set created by .
 void testLoad3()
          Verify the data set created by .
 void testLoad4()
          Verify the data set created by .
 void testMapCMPField()
           
 void testNullLoad()
          Attempt to load the entity created above and ensure that we can recover the null attributes.
 void testSetCMPField()
           
 void testStateFactoryValueHolder()
           
 void testTextLoad()
          Attempt to load each entity in turn and verify that they contain the text data with which they were created.
 void testValueHolder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LOBUnitTestCase

public LOBUnitTestCase(java.lang.String name)
                throws java.io.IOException
Method Detail

suite

public static Test suite()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testCreate0

public void testCreate0()
                 throws java.lang.Exception
Attempt to create a LOB entity with NULL attributes.

Throws:
java.lang.Exception

testNullLoad

public void testNullLoad()
                  throws java.lang.Exception
Attempt to load the entity created above and ensure that we can recover the null attributes.

Throws:
java.lang.Exception

testCreate1

public void testCreate1()
                 throws java.lang.Exception
Attempt to create a LOB entity with the small dataset.

Throws:
java.lang.Exception

testLoad1

public void testLoad1()
               throws java.lang.Exception
Verify the data set created by testCreate1().

Throws:
java.lang.Exception

testCreate2

public void testCreate2()
                 throws java.lang.Exception
Attempt to create a LOB entity with a large text object and a small binary object.

Throws:
java.lang.Exception

testLoad2

public void testLoad2()
               throws java.lang.Exception
Verify the data set created by .

Throws:
java.lang.Exception

testCreate3

public void testCreate3()
                 throws java.lang.Exception
Attempt to create a LOB entity with the small text object and a large binary object.

Throws:
java.lang.Exception

testLoad3

public void testLoad3()
               throws java.lang.Exception
Verify the data set created by .

Throws:
java.lang.Exception

testCreate4

public void testCreate4()
                 throws java.lang.Exception
Attempt to create a LOB entity with the large dataset.

Throws:
java.lang.Exception

testLoad4

public void testLoad4()
               throws java.lang.Exception
Verify the data set created by .

Throws:
java.lang.Exception

testTextLoad

public void testTextLoad()
                  throws java.lang.Exception
Attempt to load each entity in turn and verify that they contain the text data with which they were created.

Throws:
java.lang.Exception

testBinaryLoad

public void testBinaryLoad()
                    throws java.lang.Exception
Attempt to load each entity in turn and verify that they contain the binary data with which they were created.

Throws:
java.lang.Exception

testMapCMPField

public void testMapCMPField()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testSetCMPField

public void testSetCMPField()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testListCMPField

public void testListCMPField()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testBinaryDataField

public void testBinaryDataField()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testValueHolder

public void testValueHolder()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testCleanGetValueHolder

public void testCleanGetValueHolder()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testStateFactoryValueHolder

public void testStateFactoryValueHolder()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

setUpEJB

public void setUpEJB()
              throws java.lang.Exception
Lookup the LOB lobHome and cache it. Load the test data.

Throws:
java.lang.Exception

tearDownEJB

public void tearDownEJB()
                 throws java.lang.Exception
Remove data references so that they can be garbage collected if needed.

Throws:
java.lang.Exception