From jbosscache-commits at lists.jboss.org Tue Oct 9 17:55:40 2007 Content-Type: multipart/mixed; boundary="===============5558791269521843971==" MIME-Version: 1.0 From: jbosscache-commits at lists.jboss.org To: jbosscache-commits at lists.jboss.org Subject: [jbosscache-commits] JBoss Cache SVN: r4583 - in pojo/trunk/src/test/java/org/jboss/cache: pojo and 1 other directories. Date: Tue, 09 Oct 2007 17:54:00 -0400 Message-ID: --===============5558791269521843971== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: jason.greene(a)jboss.com Date: 2007-10-09 17:54:00 -0400 (Tue, 09 Oct 2007) New Revision: 4583 Removed: pojo/trunk/src/test/java/org/jboss/cache/MyClassTest.java Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/TxUndoTest.java pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/InMemoryTxUndoTes= t.java pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/ListTxUndoTest.ja= va pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/LocalTxUndoTest.j= ava pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/MapTxUndoTest.java pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/SetTxUndoTest.java Log: Minor updates Deleted: pojo/trunk/src/test/java/org/jboss/cache/MyClassTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- pojo/trunk/src/test/java/org/jboss/cache/MyClassTest.java 2007-10-09 15= :28:53 UTC (rev 4582) +++ pojo/trunk/src/test/java/org/jboss/cache/MyClassTest.java 2007-10-09 21= :54:00 UTC (rev 4583) @@ -1,48 +0,0 @@ -package org.jboss.cache; - -import org.testng.annotations.Test; -import org.testng.annotations.BeforeTest; -import org.testng.annotations.AfterClass; - -/** - * // TODO: Add Javadocs - * - * @author Manik Surtani - * @since 2.0.0 - */ -(a)Test -public class MyClassTest -{ - private MyClass mc =3D null; - - @BeforeTest - public void create() - { - mc =3D new MyClass(); - } - - @AfterClass - public void destroy() - { - mc =3D null; - } - - @Test - public void multiplication() - { - mc.setX(5); - mc.setY(2); - - assert 10 =3D=3D mc.multiply(); - } - - @Test - public void addition() - { - mc.setX(5); - mc.setY(2); - - assert 7 =3D=3D mc.add(); - } - -} Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/TxUndoTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- pojo/trunk/src/test/java/org/jboss/cache/pojo/TxUndoTest.java 2007-10-0= 9 15:28:53 UTC (rev 4582) +++ pojo/trunk/src/test/java/org/jboss/cache/pojo/TxUndoTest.java 2007-10-0= 9 21:54:00 UTC (rev 4583) @@ -30,7 +30,7 @@ */ = @Test(groups =3D {"functional"}) -public class TxUndoTest = +public class TxUndoTest { Log log_ =3D LogFactory.getLog(TxUndoTest.class); PojoCache cache_; @@ -66,7 +66,7 @@ = tx_mgr.begin(); cache_.attach("/a", test); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); assertFalse("Should not have cache interceptor ", hasCacheIntercepto= r(test)); } = @@ -100,7 +100,7 @@ = tx_mgr.begin(); cache_.detach("/a"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertTrue("Should still have cache interceptor ", hasCacheIntercept= or(test)); } @@ -114,7 +114,7 @@ tx_mgr.begin(); cache_.attach("/a", test); cache_.detach("/a"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertFalse("Should not have cache interceptor ", hasCacheIntercepto= r(test)); } Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/InMemoryTx= UndoTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/InMemoryTxUndoTe= st.java 2007-10-09 15:28:53 UTC (rev 4582) +++ pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/InMemoryTxUndoTe= st.java 2007-10-09 21:54:00 UTC (rev 4583) @@ -36,7 +36,7 @@ */ = @Test(groups =3D {"functional"}) -public class InMemoryTxUndoTest = +public class InMemoryTxUndoTest { Log log_ =3D LogFactory.getLog(InMemoryTxUndoTest.class); PojoCache cache_; @@ -82,7 +82,7 @@ tx_mgr.begin(); cache_.attach("/a", test); test.setAge(20); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertFalse("Should not have cache interceptor ", hasCacheIntercepto= r(test)); assertEquals("Should still be ", 10, test.getAge()); @@ -98,7 +98,7 @@ = tx_mgr.begin(); test.setAge(20); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); assertEquals("Should still be ", 10, test.getAge()); } = @@ -118,7 +118,7 @@ test1.setAddress(addr); tx_mgr.begin(); cache_.attach("/a", test1); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertEquals("Should still be ", 10, test.getAge()); assertNull("Address should be ", test.getAddress()); @@ -137,7 +137,7 @@ = tx_mgr.begin(); addr.setCity("Tainan"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertEquals("Should still be ", "Taipei", test.getAddress().getCity= ()); } @@ -155,7 +155,7 @@ test.setLanguages(lang); tx_mgr.begin(); lang.add("French"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertEquals("Should still be ", 1, test.getLanguages().size()); } Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/ListTxUndo= Test.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/ListTxUndoTest.j= ava 2007-10-09 15:28:53 UTC (rev 4582) +++ pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/ListTxUndoTest.j= ava 2007-10-09 21:54:00 UTC (rev 4583) @@ -32,7 +32,7 @@ */ = @Test(groups =3D {"functional"}) -public class ListTxUndoTest = +public class ListTxUndoTest { Log log_ =3D LogFactory.getLog(ListTxUndoTest.class); PojoCache cache_; @@ -66,7 +66,7 @@ = tx_mgr.begin(); cache_.attach("/a", list); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); assertFalse("Should not have cache interceptor ", isProxy(list)); = cache_.attach("/a", list); @@ -84,7 +84,7 @@ = tx_mgr.begin(); cache_.attach("/a", test); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); assertFalse("Should not have cache interceptor ", isProxy(test.getLa= nguages())); = cache_.attach("/a", test); @@ -110,7 +110,7 @@ = tx_mgr.begin(); cache_.detach("/a"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertTrue("Should still have cache interceptor ", isProxy(test.getL= anguages())); cache_.detach("/a"); @@ -128,7 +128,7 @@ tx_mgr.begin(); cache_.attach("/a", test); cache_.detach("/a"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertFalse("Should not have cache interceptor ", isProxy(test.getLa= nguages())); } Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/LocalTxUnd= oTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/LocalTxUndoTest.= java 2007-10-09 15:28:53 UTC (rev 4582) +++ pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/LocalTxUndoTest.= java 2007-10-09 21:54:00 UTC (rev 4583) @@ -32,7 +32,7 @@ */ = @Test(groups =3D {"functional"}) -public class LocalTxUndoTest = +public class LocalTxUndoTest { Log log_ =3D LogFactory.getLog(LocalTxUndoTest.class); PojoCache cache_; @@ -68,7 +68,7 @@ = tx_mgr.begin(); cache_.attach("/a", test); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); assertFalse("Should not have cache interceptor ", hasCacheIntercepto= r(test)); = cache_.attach("/a", test); @@ -95,7 +95,7 @@ = tx_mgr.begin(); cache_.detach("/a"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertTrue("Should still have cache interceptor ", hasCacheIntercept= or(test)); cache_.detach("/a"); @@ -110,7 +110,7 @@ tx_mgr.begin(); cache_.attach("/a", test); cache_.detach("/a"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertFalse("Should not have cache interceptor ", hasCacheIntercepto= r(test)); } Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/MapTxUndoT= est.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/MapTxUndoTest.ja= va 2007-10-09 15:28:53 UTC (rev 4582) +++ pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/MapTxUndoTest.ja= va 2007-10-09 21:54:00 UTC (rev 4583) @@ -68,7 +68,7 @@ = tx_mgr.begin(); cache_.attach("/a", map); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); assertFalse("Should not have cache interceptor ", isProxy(map)); = cache_.attach("/a", map); @@ -86,7 +86,7 @@ = tx_mgr.begin(); cache_.attach("/a", test); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); assertFalse("Should not have cache interceptor ", isProxy(test.getHo= bbies())); = cache_.attach("/a", test); @@ -112,7 +112,7 @@ = tx_mgr.begin(); cache_.detach("/a"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertTrue("Should still have cache interceptor ", isProxy(test.getH= obbies())); cache_.detach("/a"); @@ -130,7 +130,7 @@ tx_mgr.begin(); cache_.attach("/a", test); cache_.detach("/a"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertFalse("Should not have cache interceptor ", isProxy(test.getHo= bbies())); } Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/SetTxUndoT= est.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/SetTxUndoTest.ja= va 2007-10-09 15:28:53 UTC (rev 4582) +++ pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/SetTxUndoTest.ja= va 2007-10-09 21:54:00 UTC (rev 4583) @@ -32,7 +32,7 @@ */ = @Test(groups =3D {"functional"}) -public class SetTxUndoTest = +public class SetTxUndoTest { Log log_ =3D LogFactory.getLog(SetTxUndoTest.class); PojoCache cache_; @@ -66,7 +66,7 @@ = tx_mgr.begin(); cache_.attach("/a", set); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); assertFalse("Should not have cache interceptor ", isProxy(set)); = cache_.attach("/a", set); @@ -84,7 +84,7 @@ = tx_mgr.begin(); cache_.attach("/a", test); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); assertFalse("Should not have cache interceptor ", isProxy(test.getSk= ills())); = cache_.attach("/a", test); @@ -110,7 +110,7 @@ = tx_mgr.begin(); cache_.detach("/a"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertTrue("Should still have cache interceptor ", isProxy(test.getS= kills())); cache_.detach("/a"); @@ -128,7 +128,7 @@ tx_mgr.begin(); cache_.attach("/a", test); cache_.detach("/a"); - tx_mgr.getTransaction().rollback(); + tx_mgr.rollback(); = assertFalse("Should not have cache interceptor ", isProxy(test.getSk= ills())); } --===============5558791269521843971==--