Skip to content

Commit 648d54c

Browse files
committed
changing the builder method called in ObjectSchemaTest#patternPropertyTranslation() to feed code coverage
1 parent 5fd7910 commit 648d54c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/test/java/org/everit/json/schema/ObjectSchemaTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public void patternPropertyOnEmptyObjct() {
258258
@Test
259259
public void patternPropertyTranslation() {
260260
ObjectSchema subject = ObjectSchema.builder()
261-
.patternProperty("b_.*", BooleanSchema.INSTANCE)
261+
.patternProperty(java.util.regex.Pattern.compile("b_.*"), BooleanSchema.INSTANCE)
262262
.build();
263263
Map<java.util.regex.Pattern, Schema> expected = new HashMap<>();
264264
expected.put(java.util.regex.Pattern.compile("b_.*"), BooleanSchema.INSTANCE);

0 commit comments

Comments
 (0)