@Test public void test() { ContingenciesProviderFactory factory = new EmptyContingencyListProviderFactory(); ContingenciesProvider provider = factory.create(); Assert.assertTrue(provider instanceof EmptyContingencyListProvider); Assert.assertEquals(0, provider.getContingencies(null).size()); }
@Override public List<Contingency> getContingencies(Network network) { return Collections.emptyList(); }
EmptyContingencyListProvider implements ContingenciesProvider { @Override public List<Contingency> getContingencies(Network network) { return Collections.emptyList(); } }
EmptyContingencyListProvider implements ContingenciesProvider { @Override public List<Contingency> getContingencies(Network network) { return Collections.emptyList(); }  }
EmptyContingencyListProvider implements ContingenciesProvider { @Override public List<Contingency> getContingencies(Network network) { return Collections.emptyList(); }  @Override List<Contingency> getContingencies(Network network); }
EmptyContingencyListProvider implements ContingenciesProvider { @Override public List<Contingency> getContingencies(Network network) { return Collections.emptyList(); }  @Override List<Contingency> getContingencies(Network network);  }