EntsoeCaseRepository implements CaseRepository { @Override public boolean isDataAvailable(DateTime date, CaseType type, Country country) { return isNetworkDataAvailable(date, type, country); } EntsoeCaseRepository(EntsoeCaseRepositoryConfig config, List<EntsoeFormat> formats, ReadOnlyDataSourceFactory dataSourceFactory);   EntsoeCaseRepository(EntsoeCaseRepositoryConfig config, ComputationManager computationManager); static CaseRepository create(ComputationManager computationManager); EntsoeCaseRepositoryConfig getConfig(); @Override List<Network> load(DateTime date, CaseType type, Country country); @Override boolean isDataAvailable(DateTime date, CaseType type, Country country); @Override Set<DateTime> dataAvailable(CaseType type, Set<Country> countries, Interval interval);  }
@Test public void testIsDataAvailable() throws Exception { assertTrue(caseRepository.isDataAvailable(DateTime.parse("2013-01-13T00:15:00+01:00"), CaseType.SN, Country.FR)); assertFalse(caseRepository.isDataAvailable(DateTime.parse("2013-01-13T00:30:00+01:00"), CaseType.SN, Country.FR)); }