Ejemplo n.º 1
0
 /** Test of next method, of class NumericRange. */
 @Test
 public void testNext() {
   for (int i = 1; i <= 100; i++) {
     assertEquals(Integer.toString(i), range.next());
   }
 }
Ejemplo n.º 2
0
 /** Test of hasMore method, of class NumericRange. */
 @Test
 public void testHasMore() {
   for (int i = 1; i <= 100; i++) {
     assertEquals(true, range.hasMore());
   }
 }