From 6d14c17594953671f009ebd07661feb68f49bb81 Mon Sep 17 00:00:00 2001 From: John DeRegnaucourt Date: Sat, 3 Feb 2024 23:55:25 -0500 Subject: [PATCH] One more negative test added. --- .../com/cedarsoftware/util/convert/ConverterEverythingTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/cedarsoftware/util/convert/ConverterEverythingTest.java b/src/test/java/com/cedarsoftware/util/convert/ConverterEverythingTest.java index 61ad912e8..5a1b4287e 100644 --- a/src/test/java/com/cedarsoftware/util/convert/ConverterEverythingTest.java +++ b/src/test/java/com/cedarsoftware/util/convert/ConverterEverythingTest.java @@ -218,6 +218,7 @@ class ConverterEverythingTest { "127", (byte)127 }, { "", (byte)0 }, { "crapola", new IllegalArgumentException("Value: crapola not parseable as a byte value or outside -128 to 127")}, + { "54 crapola", new IllegalArgumentException("Value: 54 crapola not parseable as a byte value or outside -128 to 127")}, { "-129", new IllegalArgumentException("-129 not parseable as a byte value or outside -128 to 127") }, { "128", new IllegalArgumentException("128 not parseable as a byte value or outside -128 to 127") }, });