Skip to content

Commit

Permalink
formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
qcdyx committed Sep 13, 2023
1 parent bc0cee4 commit 101cee8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ public void testCreateValidators() throws ValidatorLoaderException {
.map(Object::getClass))
.containsExactly(GtfsTestEntityValidator.class);

List<Class<? extends FileValidator>> singleFilreValidatorsWithParsingErrors = new ArrayList<>();
List<Class<? extends FileValidator>> singleFileValidatorsWithParsingErrors = new ArrayList<>();
assertThat(
provider
.createSingleFileValidators(tableContainer, singleFilreValidatorsWithParsingErrors::add)
.createSingleFileValidators(
tableContainer, singleFileValidatorsWithParsingErrors::add)
.stream()
.map(Object::getClass))
.containsExactly(GtfsTestFileValidator.class);
Expand Down Expand Up @@ -77,7 +78,10 @@ public void testCreateValidators_skippedValidators() throws ValidatorLoaderExcep
GtfsFeedContainer feedContainer = new GtfsFeedContainer(ImmutableList.of(tableContainer));

List<Class<? extends FileValidator>> multiFileValidatorsWithParsingErrors = new ArrayList<>();
assertThat(provider.createMultiFileValidators(feedContainer, multiFileValidatorsWithParsingErrors::add)).isEmpty();
assertThat(
provider.createMultiFileValidators(
feedContainer, multiFileValidatorsWithParsingErrors::add))
.isEmpty();
assertThat(multiFileValidatorsWithParsingErrors).containsExactly(WholeFeedValidator.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ public static void printSummary(
b.append(" Validators with Parsing Errors: ");
if (!multiFileValidatorsWithParsingErrors.isEmpty()) {
b.append(
multiFileValidatorsWithParsingErrors.stream().map(Class::getSimpleName).collect(Collectors.joining(",")));
multiFileValidatorsWithParsingErrors.stream()
.map(Class::getSimpleName)
.collect(Collectors.joining(",")));
}
if (!singleFileValidatorsWithParsingErrors.isEmpty()) {
b.append(
Expand Down

0 comments on commit 101cee8

Please sign in to comment.