[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/optimistic ...
Ben Wang
bwang at jboss.com
Wed Jan 10 01:11:27 EST 2007
User: bwang
Date: 07/01/10 01:11:27
Modified: tests-50/functional/org/jboss/cache/pojo/optimistic
LocalTxTest.java
Log:
upd
Revision Changes Path
1.4 +28 -15 JBossCache/tests-50/functional/org/jboss/cache/pojo/optimistic/LocalTxTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalTxTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/optimistic/LocalTxTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- LocalTxTest.java 9 Jan 2007 16:21:53 -0000 1.3
+++ LocalTxTest.java 10 Jan 2007 06:11:27 -0000 1.4
@@ -123,6 +123,34 @@
assertEquals(41, p1.getAge());
}
+ public void testFailure() throws Exception
+ {
+ log.info("testFailure() ....");
+ UserTransaction tx = getTransaction();
+ tx.begin();
+ Person p = createPerson("/person/test1", "Harald Gliebe", 32);
+ tx.commit();
+
+ tx.begin();
+ p = createPerson("/person/test1", "Harald Gliebe", 32);
+ tx.commit();
+ }
+
+ public void testFailure1() throws Exception
+ {
+ log.info("testFailure1() ....");
+ UserTransaction tx = getTransaction();
+ org.jboss.cache.Fqn f = new org.jboss.cache.Fqn("/person/test2");
+ tx.begin();
+ cache.getCache().put(f, "test", "test");
+ tx.commit();
+
+ tx.begin();
+ cache.getCache().removeNode(f);
+ cache.getCache().put(f, "test", "test");
+ tx.commit();
+ }
+
public void testModification() throws Exception
{
UserTransaction tx = getTransaction();
@@ -231,21 +259,6 @@
}
- public void testFailure1() throws Exception
- {
- log.info("testFailure1() ....");
- UserTransaction tx = getTransaction();
- Fqn f = Fqn.fromString("/person/test2");
- tx.begin();
- cache.getCache().put(f, "test", "test");
- tx.commit();
-
- tx.begin();
- cache.getCache().removeNode(f);
- cache.getCache().put(f, "test", "test");
- tx.commit();
- }
-
public void testConcurrentSimplePutsII() throws Exception
{
Thread t1 = new Thread("t1")
More information about the jboss-cvs-commits
mailing list