Skip to content

Commit

Permalink
refactor(Reduce test feed size): Removed redundant files and zipped
Browse files Browse the repository at this point in the history
  • Loading branch information
br648 committed Jan 16, 2024
1 parent 12a990f commit 306231d
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 19,134 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@

import static com.conveyal.gtfs.GTFS.load;
import static com.conveyal.gtfs.GTFS.validate;
import static com.conveyal.gtfs.TestUtils.getResourceFileName;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.greaterThan;


class PatternFinderValidatorTest {

private static final Logger LOG = LoggerFactory.getLogger(PatternFinderValidatorTest.class);

private static String testDBName;

private static DataSource testDataSource;
Expand All @@ -46,11 +45,11 @@ public static void tearDownClass() {

@Test
void canUseFeedPatterns() throws SQLException, IOException {
String zipFileName = TestUtils.zipFolderFiles("real-world-gtfs-feeds/RABA", true);
FeedLoadResult feedLoadResult = load(zipFileName, testDataSource);
String fileName = getResourceFileName("real-world-gtfs-feeds/RABA.zip");
FeedLoadResult feedLoadResult = load(fileName, testDataSource);
String testNamespace = feedLoadResult.uniqueIdentifier;
validate(testNamespace, testDataSource);
checkPatternStops(zipFileName, testNamespace);
checkPatternStops(fileName, testNamespace);
}

@Test
Expand Down
Binary file added src/test/resources/real-world-gtfs-feeds/RABA.zip
Binary file not shown.
2 changes: 0 additions & 2 deletions src/test/resources/real-world-gtfs-feeds/RABA/agency.txt

This file was deleted.

11 changes: 0 additions & 11 deletions src/test/resources/real-world-gtfs-feeds/RABA/calendar.txt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions src/test/resources/real-world-gtfs-feeds/RABA/fare_rules.txt

This file was deleted.

2 changes: 0 additions & 2 deletions src/test/resources/real-world-gtfs-feeds/RABA/feed_info.txt

This file was deleted.

19 changes: 0 additions & 19 deletions src/test/resources/real-world-gtfs-feeds/RABA/routes.txt

This file was deleted.

Loading

0 comments on commit 306231d

Please sign in to comment.