@Test public void getSeeds_configurationException() throws Exception { final ConfigurationException exception = new ConfigurationException("misconfigured"); expect(connector.getSeeds(RING_NAME)).andThrow(exception); replay(connector, provider); try { provider.getSeeds(); fail("Expected a RuntimeException"); } catch (RuntimeException e) { assertEquals(exception, e); } }
@Override public List<InetAddress> getSeeds() { try { return transform(connector.getSeeds(ringName)); } catch (ConfigurationException e) { throw Throwables.propagate(e); } }
AgathonSeedProvider implements SeedProvider { @Override public List<InetAddress> getSeeds() { try { return transform(connector.getSeeds(ringName)); } catch (ConfigurationException e) { throw Throwables.propagate(e); } } }
AgathonSeedProvider implements SeedProvider { @Override public List<InetAddress> getSeeds() { try { return transform(connector.getSeeds(ringName)); } catch (ConfigurationException e) { throw Throwables.propagate(e); } } AgathonSeedProvider(Map<String, String> params); @VisibleForTesting  AgathonSeedProvider(AgathonConnector connector, String ringName, @Nullable InetAddress localAddress); }
AgathonSeedProvider implements SeedProvider { @Override public List<InetAddress> getSeeds() { try { return transform(connector.getSeeds(ringName)); } catch (ConfigurationException e) { throw Throwables.propagate(e); } } AgathonSeedProvider(Map<String, String> params); @VisibleForTesting  AgathonSeedProvider(AgathonConnector connector, String ringName, @Nullable InetAddress localAddress); @Override List<InetAddress> getSeeds(); }
AgathonSeedProvider implements SeedProvider { @Override public List<InetAddress> getSeeds() { try { return transform(connector.getSeeds(ringName)); } catch (ConfigurationException e) { throw Throwables.propagate(e); } } AgathonSeedProvider(Map<String, String> params); @VisibleForTesting  AgathonSeedProvider(AgathonConnector connector, String ringName, @Nullable InetAddress localAddress); @Override List<InetAddress> getSeeds();  }