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

Manik Surtani msurtani at jboss.com
Tue Jul 18 12:32:48 EDT 2006


  User: msurtani
  Date: 06/07/18 12:32:48

  Modified:    tests/functional/org/jboss/cache  FqnTest.java
  Log:
  JBCACHE-703
  
  Revision  Changes    Path
  1.10      +18 -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.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- FqnTest.java	25 Apr 2006 17:15:48 -0000	1.9
  +++ FqnTest.java	18 Jul 2006 16:32:48 -0000	1.10
  @@ -17,7 +17,7 @@
   /**
    * Tests {@link Fqn}.
    * @author <a href="mailto:bela at jboss.org">Bela Ban</a> May 9, 2003
  - * @version $Revision: 1.9 $
  + * @version $Revision: 1.10 $
    */
   public class FqnTest extends TestCase {
   
  @@ -272,6 +272,23 @@
           assertEquals(object.toString(), objectFqn.getName());
      }
   
  +   public void testRemovalNonString() throws Exception
  +   {
  +       Fqn f = new Fqn(new Object[] {"test", new Integer(1)});
  +       TreeCache tc = new TreeCache();
  +       tc.setCacheMode("LOCAL");
  +       tc.startService();
  +
  +       tc.put(f, "key",  "value");
  +       assertEquals("value", tc.get(f, "key"));
  +       assertTrue(tc.exists(f));
  +
  +       tc.remove(f);
  +
  +       assertNull(tc.get(f, "key"));
  +       assertFalse(tc.exists(f));
  +   }
  +
   
      Fqn marshalAndUnmarshal(Fqn fqn) throws Exception {
         byte[] buf=Util.objectToByteBuffer(fqn);
  
  
  



More information about the jboss-cvs-commits mailing list