/** Test if int value are ok. */
 @Test(dataProvider = "persistentSearchChangeTypeData")
 public void checkIntValueTest(Map<Integer, String> expectedValues) throws Exception {
   for (Integer i : expectedValues.keySet()) {
     PersistentSearchChangeType val = PersistentSearchChangeType.valueOf(i);
     String expected = expectedValues.get(i);
     assertEquals(val.toString(), expected);
   }
 }
Exemple #2
0
 @Test
 public void main() {
   Map m = new AHTMap();
   m.put(key, oldValue);
   Map.Entry e = (Map.Entry) m.entrySet().iterator().next();
   Object returnVal = e.setValue(newValue);
   assertTrue(returnVal.equals(oldValue));
   assertEquals(m.get(key), newValue);
 }