Package org.jboss.messaging.util

Examples of org.jboss.messaging.util.SelectiveIterator


      List l = new ArrayList();
      l.add("a");
      l.add(new Integer(1));
      l.add("b");

      SelectiveIterator si = new SelectiveIterator(l.iterator(), Integer.class);

      assertTrue(si.hasNext());
      assertEquals("a", si.next());
      assertTrue(si.hasNext());
      assertEquals("b", si.next());
      assertFalse(si.hasNext());
   }
View Full Code Here


      List l = new ArrayList();
      l.add("a");
      l.add("b");
      l.add("c");

      SelectiveIterator si = new SelectiveIterator(l.iterator(), String.class);

      assertFalse(si.hasNext());
   }
View Full Code Here

      assertFalse(si.hasNext());
   }

   public void testRemove()
   {
      SelectiveIterator si =
         new SelectiveIterator(Collections.EMPTY_LIST.iterator(), String.class);

      try
      {
         si.remove();
         fail("If you implement remove(), provide tests");
      }
      catch(UnsupportedOperationException e)
      {
View Full Code Here

TOP

Related Classes of org.jboss.messaging.util.SelectiveIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.