[jboss-cvs] JBossCache/tests/functional/org/jboss/cache ...

Manik Surtani msurtani at jboss.com
Thu Jan 4 00:35:41 EST 2007


  User: msurtani
  Date: 07/01/04 00:35:41

  Modified:    tests/functional/org/jboss/cache   UnversionedNodeTest.java
                        FqnTest.java
  Log:
  Major changes around nodes, and the way they interact with the interceptor stack.
  Also removed redundant methods in NodeSPI and removed the need for casting to NodeSPI in most cases.
  
  Revision  Changes    Path
  1.2       +2 -1      JBossCache/tests/functional/org/jboss/cache/UnversionedNodeTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UnversionedNodeTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/UnversionedNodeTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- UnversionedNodeTest.java	30 Dec 2006 17:49:54 -0000	1.1
  +++ UnversionedNodeTest.java	4 Jan 2007 05:35:41 -0000	1.2
  @@ -13,6 +13,7 @@
         assertEquals(Collections.emptyMap(), node.getData());
         assertEquals(Collections.emptySet(), node.getChildren());
      }
  +
      /*
      public void testOrder()
      {  
  @@ -39,7 +40,7 @@
         sm.put("a", a);
         sm.put("b", b);
         sm.put("c", c);
  -      SortedSet<Node> ss = (SortedSet) node.getChildren();
  +      SortedSet<Node> ss = (SortedSet) node.getChildrenDirect();
         assertEquals(a, ss.first());
         assertEquals(c, ss.last());
      }
  
  
  
  1.21      +5 -5      JBossCache/tests/functional/org/jboss/cache/FqnTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FqnTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/FqnTest.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -b -r1.20 -r1.21
  --- FqnTest.java	2 Jan 2007 18:26:06 -0000	1.20
  +++ FqnTest.java	4 Jan 2007 05:35:41 -0000	1.21
  @@ -20,7 +20,7 @@
    * Tests {@link Fqn}.
    *
    * @author <a href="mailto:bela at jboss.org">Bela Ban</a> May 9, 2003
  - * @version $Revision: 1.20 $
  + * @version $Revision: 1.21 $
    */
   public class FqnTest extends TestCase
   {
  @@ -199,7 +199,7 @@
      public void testClone() throws CloneNotSupportedException
      {
         Fqn fqn1 = Fqn.fromString("/a/b/c");
  -      Fqn fqn2 = (Fqn) fqn1.clone();
  +      Fqn fqn2 = fqn1.clone();
         assertEquals(fqn1, fqn2);
         assertEquals(fqn1.hashCode(), fqn2.hashCode());
      }
  @@ -310,9 +310,9 @@
      public void testRemovalNonString() throws Exception
      {
         Fqn f = new Fqn(new Object[]{"test", 1});
  -//       CacheImpl tc = new CacheImpl();
  -//       tc.getConfiguration().setCacheMode("LOCAL");
  -//       tc.start();
  +      //       CacheImpl tc = new CacheImpl();
  +      //       tc.getConfiguration().setCacheMode("LOCAL");
  +      //       tc.start();
         Configuration c = new Configuration();
         c.setCacheMode("LOCAL");
         Cache cache = DefaultCacheFactory.getInstance().createCache(c);
  
  
  



More information about the jboss-cvs-commits mailing list