Exemplo n.º 1
0
 /**
  * Test method for {@link at.ac.tuwien.auto.calimero.datapoint.StateDP#remove(
  * at.ac.tuwien.auto.calimero.GroupAddress, boolean)}.
  */
 public final void testRemove() {
   final StateDP dp = new StateDP(ga, "name1", inv, upd);
   assertTrue(dp.isInvalidating(new GroupAddress(1, 1, 1)));
   dp.remove(new GroupAddress(1, 1, 1), false);
   assertFalse(dp.isInvalidating(new GroupAddress(1, 1, 1)));
   assertTrue(dp.isUpdating(new GroupAddress(4, 4, 4)));
   dp.remove(new GroupAddress(4, 4, 4), true);
   assertFalse(dp.isUpdating(new GroupAddress(4, 4, 4)));
 }