Skip to content

Commit b2be2c4

Browse files
committed
minor add to dataformat match test
1 parent 18c5398 commit b2be2c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/com/fasterxml/jackson/core/format/TestJsonFormatDetection.java

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public void testSimpleInvalid() throws Exception
8383
DataFormatMatcher matcher = detector.findFormat(new ByteArrayInputStream(NON_JSON.getBytes("UTF-8")));
8484
// should not have match
8585
assertFalse(matcher.hasMatch());
86+
assertNull(matcher.getMatchedFormatName());
8687
// and thus:
8788
assertEquals(MatchStrength.INCONCLUSIVE, matcher.getMatchStrength());
8889
// also:

0 commit comments

Comments
 (0)