org.jboss.cache.tests
Class PrepareTxTest

java.lang.Object
  extended byTestCase
      extended byorg.jboss.cache.tests.PrepareTxTest

public class PrepareTxTest
extends TestCase

Created by IntelliJ IDEA. User: bela Date: Jun 9, 2004 Time: 9:05:19 AM

See Also:
Serialized Form

Constructor Summary
PrepareTxTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static Test suite()
           
protected  void tearDown()
           
 void testCacheModificationInAfterCompletionPhase()
          Tests cache modification inside the afterCompletion() callback.
 void testCacheModificationInBeforeCompletionPhase()
          Tests cache modification inside the afterCompletion() callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrepareTxTest

public PrepareTxTest()
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

testCacheModificationInBeforeCompletionPhase

public void testCacheModificationInBeforeCompletionPhase()
                                                  throws java.lang.Exception,
                                                         NotSupportedException (src) 
Tests cache modification inside the afterCompletion() callback. Reproduces a bug fixed in connection with JBossCache being used as Hibernate's second level cache

Throws:
java.lang.Exception
NotSupportedException (src)

testCacheModificationInAfterCompletionPhase

public void testCacheModificationInAfterCompletionPhase()
                                                 throws java.lang.Exception,
                                                        NotSupportedException (src) 
Tests cache modification inside the afterCompletion() callback. Reproduces a bug fixed in connection with JBossCache being used as Hibernate's second level cache

Throws:
java.lang.Exception
NotSupportedException (src)

suite

public static Test suite()

main

public static void main(java.lang.String[] args)