站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 Cache API Documentation 英文版文档

PrepareTxTest (JBossCache API) - JBoss 4.0.1 sp1 Cache API Documentation 英文版文档


org.jboss.cache.tests
Class PrepareTxTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.cache.tests.PrepareTxTest
All Implemented Interfaces:
junit.framework.Test

public class PrepareTxTest
extends junit.framework.TestCase

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


Constructor Summary
PrepareTxTest()
           
 
Method Summary
static void main(String[] args)
           
protected  void setUp()
           
static junit.framework.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 junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrepareTxTest

public PrepareTxTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

testCacheModificationInBeforeCompletionPhase

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

Throws:
Exception
NotSupportedException

testCacheModificationInAfterCompletionPhase

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

Throws:
Exception
NotSupportedException

suite

public static junit.framework.Test suite()

main

public static void main(String[] args)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.