PollConfigurationMap extends NodeMap { public int getPollInterval() { if (!contains(POLL_INTERVAL_KEY)) { return -1; } return (int) get(POLL_INTERVAL_KEY); } PollConfigurationMap(StateNode node); void setPollInterval(int pollInterval); int getPollInterval(); static final String POLL_INTERVAL_KEY; }
@Test public void setDefaultPollInterval() { Assert.assertEquals(-1, map.getPollInterval()); }