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

Manik Surtani manik at jboss.org
Tue Jul 3 07:57:48 EDT 2007


  User: msurtani
  Date: 07/07/03 07:57:48

  Modified:    tests/functional/org/jboss/cache/notifications 
                        AnnotationsTest.java
  Log:
  listener based fixes
  
  Revision  Changes    Path
  1.4       +5 -5      JBossCache/tests/functional/org/jboss/cache/notifications/AnnotationsTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AnnotationsTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/notifications/AnnotationsTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- AnnotationsTest.java	3 Jul 2007 10:54:10 -0000	1.3
  +++ AnnotationsTest.java	3 Jul 2007 11:57:48 -0000	1.4
  @@ -177,9 +177,9 @@
      {
         Object l = new TestMultipleMethodsListener();
         n.addCacheListener(l);
  -      List invocations = (List) n.listenerInvocations.get(CacheStarted.class);
  +      List invocations = n.listenerInvocations.get(CacheStarted.class);
         assertEquals(1, invocations.size());
  -      invocations = (List) n.listenerInvocations.get(CacheStopped.class);
  +      invocations = n.listenerInvocations.get(CacheStopped.class);
         assertEquals(1, invocations.size());
         assertEquals(1, n.getCacheListeners().size());
      }
  @@ -188,9 +188,9 @@
      {
         Object l = new TestMultipleAnnotationsOneMethodListener();
         n.addCacheListener(l);
  -      List invocations = (List) n.listenerInvocations.get(CacheStarted.class);
  +      List invocations = n.listenerInvocations.get(CacheStarted.class);
         assertEquals(1, invocations.size());
  -      invocations = (List) n.listenerInvocations.get(CacheStopped.class);
  +      invocations = n.listenerInvocations.get(CacheStopped.class);
         assertEquals(1, invocations.size());
         assertEquals(1, n.getCacheListeners().size());
      }
  @@ -199,7 +199,7 @@
      {
         Object l = new TestMultipleMethodsOneAnnotationListener();
         n.addCacheListener(l);
  -      List invocations = (List) n.listenerInvocations.get(CacheStarted.class);
  +      List invocations = n.listenerInvocations.get(CacheStarted.class);
         assertEquals(2, invocations.size());
         assertEquals(1, n.getCacheListeners().size());
      }
  
  
  



More information about the jboss-cvs-commits mailing list