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

Manik Surtani msurtani at jboss.com
Tue Aug 22 09:43:08 EDT 2006


  User: msurtani
  Date: 06/08/22 09:43:08

  Modified:    tests/functional/org/jboss/cache  FqnTest.java
  Log:
  more efficient cloning
  
  Revision  Changes    Path
  1.13      +13 -1     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.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- FqnTest.java	14 Aug 2006 17:20:35 -0000	1.12
  +++ FqnTest.java	22 Aug 2006 13:43:08 -0000	1.13
  @@ -19,7 +19,7 @@
   /**
    * Tests {@link Fqn}.
    * @author <a href="mailto:bela at jboss.org">Bela Ban</a> May 9, 2003
  - * @version $Revision: 1.12 $
  + * @version $Revision: 1.13 $
    */
   public class FqnTest extends TestCase {
   
  @@ -274,6 +274,18 @@
           assertEquals(object.toString(), objectFqn.getName());
      }
   
  +   public void testCloningString() throws CloneNotSupportedException
  +   {
  +       Fqn f = Fqn.fromString("/a/b/c");
  +       assertEquals(f, f.clone());
  +   }
  +
  +   public void testCloningOtherTypes() throws CloneNotSupportedException
  +   {
  +       Fqn f = new Fqn(new Object[]{"blah", new Integer(10), Boolean.TRUE});
  +       assertEquals(f, f.clone());
  +   }
  +
      public void testRemovalNonString() throws Exception
      {
          Fqn f = new Fqn(new Object[] {"test", new Integer(1)});
  
  
  



More information about the jboss-cvs-commits mailing list