use of org.apache.mesos.state.State in project jesos by groupon.
the class AbstractTestState method testExpungeNonExistentValue.
@Test
public void testExpungeNonExistentValue() throws Exception {
final State state = getState();
final Variable empty = state.fetch("does-not-exist").get();
assertNotNull(empty);
assertTrue(empty.value().length == 0);
final boolean expunged = state.expunge(empty).get();
assertFalse(expunged);
}
Aggregations