StaticListDiscoveryConfig implements DiscoveryConfig { public List<String> getAddresses() { return addresses; } StaticListDiscoveryConfig(int port, List<String> addresses);  StaticListDiscoveryConfig(int port, String... addresses);  StaticListDiscoveryConfig(int port, String commaDelimitedList);  StaticListDiscoveryConfig(); List<String> getAddresses(); int getPort(); @Override Class getDiscoveryStrategyClass(); static final String DISCOVERY_CONFIG_SYSTEM_PROPERTY_STATIC_LIST_ADDRESSES; static final String DISCOVERY_CONFIG_SYSTEM_PROPERTY_STATIC_LIST_PORT; }
@Test public void providedEmptyList() { List<String> address = new StaticListDiscoveryConfig(7001, "").getAddresses(); assertEquals(Collections.emptyList(), address); }