Skip to content

Commit

Permalink
STYLE: NAV-14 - Rename test methods, adjust visibility and remove whi…
Browse files Browse the repository at this point in the history
…te space
  • Loading branch information
munterfi committed May 3, 2024
1 parent 6273663 commit a3085ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
@RequiredArgsConstructor
@Getter
public enum GtfsScheduleFile {
enum GtfsScheduleFile {
// FEED_INFO("feed_info.txt", Presence.OPTIONAL),
// ATTRIBUTIONS("attributions.txt", Presence.OPTIONAL),
AGENCY("agency.txt", Presence.REQUIRED),
Expand Down
1 change: 0 additions & 1 deletion src/test/java/ch/naviqore/Benchmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public static void main(String[] args) throws IOException, InterruptedException
RouteRequest[] requests = sampleRouteRequests(stopIds);
RoutingResult[] results = processRequests(raptor, requests);
writeResultsToCsv(results);

}

private static GtfsSchedule initializeSchedule() throws IOException, InterruptedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ void setUp() {
}

@Test
void readFromZipFile(@TempDir Path tempDir) throws IOException {
void shouldReadFromZipFile(@TempDir Path tempDir) throws IOException {
File zipFile = GtfsScheduleTestData.prepareZipDataset(tempDir);
GtfsSchedule schedule = gtfsScheduleReader.read(zipFile.getAbsolutePath());
assertScheduleSizes(schedule);
}

@Test
void readFromDirectory(@TempDir Path tempDir) throws IOException {
void shouldReadFromDirectory(@TempDir Path tempDir) throws IOException {
File unzippedDir = GtfsScheduleTestData.prepareUnzippedDataset(tempDir);
GtfsSchedule schedule = gtfsScheduleReader.read(unzippedDir.getAbsolutePath());
assertScheduleSizes(schedule);
Expand Down

0 comments on commit a3085ac

Please sign in to comment.