@Test(expectedExceptions = RuntimeException.class) public void testGetLongList() throws Exception { long[] expected = new long[] { 1L, 2L, 3L, 4L, 5L, 6L }; ParsecConfig confWrapper = getConfig(); List<Long> numberList = confWrapper.getLongList("numberList"); int idx = 0; for (long value : numberList) { assertEquals(value, expected[idx++]); } confWrapper.getLongList("notExist"); }
@Override public List<Long> getLongList(String path) { try { return configDelegate.getLongList(path); } catch (ConfigException e) { throw new RuntimeException(e); } }
TypeSafeConfWrapper implements ParsecConfig { @Override public List<Long> getLongList(String path) { try { return configDelegate.getLongList(path); } catch (ConfigException e) { throw new RuntimeException(e); } } }
TypeSafeConfWrapper implements ParsecConfig { @Override public List<Long> getLongList(String path) { try { return configDelegate.getLongList(path); } catch (ConfigException e) { throw new RuntimeException(e); } } TypeSafeConfWrapper(Config conf); }
TypeSafeConfWrapper implements ParsecConfig { @Override public List<Long> getLongList(String path) { try { return configDelegate.getLongList(path); } catch (ConfigException e) { throw new RuntimeException(e); } } TypeSafeConfWrapper(Config conf); @Override String getString(String key); @Override boolean isEmpty(); @Override boolean getBoolean(String path); @Override Number getNumber(String path); @Override int getInt(String path); @Override long getLong(String path); @Override double getDouble(String path); @Override long getDuration(String path, TimeUnit unit); @Override Duration getDuration(String path); @Override List<Boolean> getBooleanList(String path); @Override List<Number> getNumberList(String path); @Override List<Integer> getIntList(String path); @Override List<Long> getLongList(String path); @Override List<Double> getDoubleList(String path); @Override List<String> getStringList(String path); @Override List<? extends ParsecConfig> getConfigList(String path); @Override List<Long> getDurationList(String path, TimeUnit unit); @Override List<Duration> getDurationList(String path); @Override Object getAnyRef(String path); @Override List<? extends Object> getAnyRefList(String path); @Override ParsecConfig getConfig(String path); }
TypeSafeConfWrapper implements ParsecConfig { @Override public List<Long> getLongList(String path) { try { return configDelegate.getLongList(path); } catch (ConfigException e) { throw new RuntimeException(e); } } TypeSafeConfWrapper(Config conf); @Override String getString(String key); @Override boolean isEmpty(); @Override boolean getBoolean(String path); @Override Number getNumber(String path); @Override int getInt(String path); @Override long getLong(String path); @Override double getDouble(String path); @Override long getDuration(String path, TimeUnit unit); @Override Duration getDuration(String path); @Override List<Boolean> getBooleanList(String path); @Override List<Number> getNumberList(String path); @Override List<Integer> getIntList(String path); @Override List<Long> getLongList(String path); @Override List<Double> getDoubleList(String path); @Override List<String> getStringList(String path); @Override List<? extends ParsecConfig> getConfigList(String path); @Override List<Long> getDurationList(String path, TimeUnit unit); @Override List<Duration> getDurationList(String path); @Override Object getAnyRef(String path); @Override List<? extends Object> getAnyRefList(String path); @Override ParsecConfig getConfig(String path);  }