[jbosscache-commits] JBoss Cache SVN: r4583 - in pojo/trunk/src/test/java/org/jboss/cache: pojo and 1 other directories.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Oct 9 17:54:00 EDT 2007


Author: jason.greene at 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/InMemoryTxUndoTest.java
   pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/ListTxUndoTest.java
   pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/LocalTxUndoTest.java
   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
===================================================================
--- 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 <a href="mailto:manik at jboss.org">Manik Surtani</a>
- * @since 2.0.0
- */
- at Test
-public class MyClassTest
-{
-   private MyClass mc = null;
-
-   @BeforeTest
-   public void create()
-   {
-      mc = new MyClass();
-   }
-
-   @AfterClass
-   public void destroy()
-   {
-      mc = null;
-   }
-
-   @Test
-   public void multiplication()
-   {
-      mc.setX(5);
-      mc.setY(2);
-
-      assert 10 == mc.multiply();
-   }
-
-   @Test
-   public void addition()
-   {
-      mc.setX(5);
-      mc.setY(2);
-
-      assert 7 == mc.add();
-   }
-
-}

Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/TxUndoTest.java
===================================================================
--- pojo/trunk/src/test/java/org/jboss/cache/pojo/TxUndoTest.java	2007-10-09 15:28:53 UTC (rev 4582)
+++ pojo/trunk/src/test/java/org/jboss/cache/pojo/TxUndoTest.java	2007-10-09 21:54:00 UTC (rev 4583)
@@ -30,7 +30,7 @@
  */
 
 @Test(groups = {"functional"})
-public class TxUndoTest 
+public class TxUndoTest
 {
    Log log_ = 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 ", hasCacheInterceptor(test));
    }
 
@@ -100,7 +100,7 @@
 
       tx_mgr.begin();
       cache_.detach("/a");
-      tx_mgr.getTransaction().rollback();
+      tx_mgr.rollback();
 
       assertTrue("Should still have cache interceptor ", hasCacheInterceptor(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 ", hasCacheInterceptor(test));
    }

Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/InMemoryTxUndoTest.java
===================================================================
--- pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/InMemoryTxUndoTest.java	2007-10-09 15:28:53 UTC (rev 4582)
+++ pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/InMemoryTxUndoTest.java	2007-10-09 21:54:00 UTC (rev 4583)
@@ -36,7 +36,7 @@
  */
 
 @Test(groups = {"functional"})
-public class InMemoryTxUndoTest 
+public class InMemoryTxUndoTest
 {
    Log log_ = 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 ", hasCacheInterceptor(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/ListTxUndoTest.java
===================================================================
--- pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/ListTxUndoTest.java	2007-10-09 15:28:53 UTC (rev 4582)
+++ pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/ListTxUndoTest.java	2007-10-09 21:54:00 UTC (rev 4583)
@@ -32,7 +32,7 @@
  */
 
 @Test(groups = {"functional"})
-public class ListTxUndoTest 
+public class ListTxUndoTest
 {
    Log log_ = 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.getLanguages()));
 
       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.getLanguages()));
       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.getLanguages()));
    }

Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/LocalTxUndoTest.java
===================================================================
--- 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 = {"functional"})
-public class LocalTxUndoTest 
+public class LocalTxUndoTest
 {
    Log log_ = 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 ", hasCacheInterceptor(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 ", hasCacheInterceptor(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 ", hasCacheInterceptor(test));
    }

Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/MapTxUndoTest.java
===================================================================
--- pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/MapTxUndoTest.java	2007-10-09 15:28:53 UTC (rev 4582)
+++ pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/MapTxUndoTest.java	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.getHobbies()));
 
       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.getHobbies()));
       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.getHobbies()));
    }

Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/SetTxUndoTest.java
===================================================================
--- pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/SetTxUndoTest.java	2007-10-09 15:28:53 UTC (rev 4582)
+++ pojo/trunk/src/test/java/org/jboss/cache/pojo/rollback/SetTxUndoTest.java	2007-10-09 21:54:00 UTC (rev 4583)
@@ -32,7 +32,7 @@
  */
 
 @Test(groups = {"functional"})
-public class SetTxUndoTest 
+public class SetTxUndoTest
 {
    Log log_ = 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.getSkills()));
 
       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.getSkills()));
       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.getSkills()));
    }




More information about the jbosscache-commits mailing list