use of fi.livi.digitraffic.tie.service.IllegalArgumentException in project digitraffic-road by tmfg.
the class LocationMetadataUpdaterTest method findAndUpdateException.
@Test
public void findAndUpdateException() throws IOException {
try {
when(metadataFileFetcherSpy.getLatestVersions()).thenThrow(new IllegalArgumentException("TEST"));
locationMetadataUpdater.findAndUpdate();
fail();
} catch (final IllegalArgumentException iae) {
assertEquals(iae.getMessage(), "TEST");
}
verify(metadataFileFetcherSpy, never()).getFilePaths(any(MetadataVersions.class));
}
Aggregations