Exemple #1
0
 @Test
 public void test_keyNameIterator_shouldPass() {
   Key key = Key.create(KEY_1_NAME, Key.KEY_VALUE, KEY_1_VALUE, Key.KEY_END);
   Iterator<String> iterator = key.iterator();
   assertTrue(iterator.hasNext());
   assertEquals(KEY_1_NAME_PART_1, iterator.next());
   assertTrue(iterator.hasNext());
   assertEquals(KEY_1_NAME_PART_2, iterator.next());
   assertTrue(iterator.hasNext());
   assertEquals(KEY_1_NAME_PART_3, iterator.next());
   assertTrue(iterator.hasNext());
   assertEquals(KEY_1_NAME_PART_4, iterator.next());
   assertFalse(iterator.hasNext());
 }