ConfigurationEvent { public int getIntegerValue() throws NumberFormatException { return ConfigurationSection.getIntegerValue(value); } ConfigurationEvent(Configuration configuration, String name, String value); Configuration getConfiguration(); String getVariable(); String getValue(); int getIntegerValue(); float getFloatValue(); boolean getBooleanValue(); long getLongValue(); double getDoubleValue(); ValueList getListValue(String separator);  }
@Test public void testIntegerEvent() { ConfigurationEvent event; event = new ConfigurationEvent(conf, VARIABLE_NAME, Integer.toString(INTEGER_VALUE)); assert INTEGER_VALUE == event.getIntegerValue(); event = new ConfigurationEvent(conf, VARIABLE_NAME, null); assert 0 == event.getIntegerValue(); }