ConfigurationEvent { public long getLongValue() throws NumberFormatException { return ConfigurationSection.getLongValue(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 testLongEvent() { ConfigurationEvent event; event = new ConfigurationEvent(conf, VARIABLE_NAME, Long.toString(LONG_VALUE)); assert LONG_VALUE == event.getLongValue(); event = new ConfigurationEvent(conf, VARIABLE_NAME, null); assert 0 == event.getLongValue(); }