Skip to content

Commit 611ece9

Browse files
committed
added reproduction testcase for #25
1 parent 966e9bb commit 611ece9

File tree

4 files changed

+4963
-3
lines changed

4 files changed

+4963
-3
lines changed

core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@
6363
<configuration>
6464
<instructions>
6565
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
66-
<Import-Package> *
66+
<Import-Package> *
6767
</Import-Package>
6868
<Export-Package>
6969
${project.artifactId};version=${project.version},
70-
${project.artifactId}.loader;version=${project.version}
70+
${project.artifactId}.loader;version=${project.version}
7171
</Export-Package>
7272
</instructions>
7373
</configuration>

tests/src/test/java/org/everit/json/schema/IssueTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ private void validate(final File file, final Schema schema, final boolean should
133133
throw new UncheckedIOException(e);
134134
}
135135
if (shouldBeValid && thrown != null) {
136-
Assert.fail("validation failed with: " + thrown);
136+
StringBuilder failureBuilder = new StringBuilder("validation failed with: " + thrown);
137+
for (ValidationException e : thrown.getCausingExceptions()) {
138+
failureBuilder.append("\n\t").append(e.getMessage());
139+
}
140+
Assert.fail(failureBuilder.toString());
137141
}
138142
if (!shouldBeValid && thrown == null) {
139143
Assert.fail("did not throw ValidationException for invalid subject");

0 commit comments

Comments
 (0)