Skip to content

Commit

Permalink
Merge pull request #952 from TNG/fix/issue-947
Browse files Browse the repository at this point in the history
Issue-947: Fix cast failure
  • Loading branch information
l-1squared authored Sep 15, 2022
2 parents f491efb + 9ca82fb commit 141a8f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v1.2.3
##Fixed issues
* Fixed build error when JGiven is used in conjuntion with openapi. [#947](https://github.com/TNG/JGiven/issues/947)
# v1.2.2
##Fixed issues
* Fixed issue where tags listed all of their ancestors as direct parents [#868](https://github.com/TNG/JGiven/issues/868) (thanks to jadhindieh for reporting)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.tngtech.jgiven.report.json;

import com.google.common.io.Files;
import com.tngtech.jgiven.impl.util.FilePredicates;

import java.io.File;
import java.util.stream.StreamSupport;
Expand All @@ -17,7 +16,7 @@ public class JsonModelTraverser {
*/
public void traverseModels(File sourceDirectory, ReportModelFileHandler handler) {
StreamSupport.stream(Files.fileTraverser().breadthFirst(sourceDirectory).spliterator(), false)
.filter(FilePredicates.endsWith(".json"))
.filter(input -> input.getName().endsWith(".json"))
.map(new ReportModelFileReader())
.forEach(handler::handleReportModel);
}
Expand Down

0 comments on commit 141a8f8

Please sign in to comment.