You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/02/19 23:07:09 UTC

[GitHub] [commons-codec] nhojpatrick commented on a change in pull request #111: CODEC-285 JUnit v5 parallel assertions

nhojpatrick commented on a change in pull request #111:
URL: https://github.com/apache/commons-codec/pull/111#discussion_r810547100



##########
File path: src/test/java/org/apache/commons/codec/net/URLCodecTest.java
##########
@@ -129,14 +130,19 @@ public void testEncodeDecodeNull() throws Exception {
 
 
     @Test
-    public void testDecodeInvalid() throws Exception {
+    public void testDecodeInvalid() {
         final URLCodec urlCodec = new URLCodec();
-        assertThrows(DecoderException.class, () -> urlCodec.decode("%"));
-        assertThrows(DecoderException.class, () -> urlCodec.decode("%A"));
-        // Bad 1st char after %
-        assertThrows(DecoderException.class, () -> urlCodec.decode("%A"));
-        // Bad 2nd char after %
-        assertThrows(DecoderException.class, () -> urlCodec.decode("%0W"));
+
+        assertAll(
+                () -> assertThrows(DecoderException.class, () -> urlCodec.decode("%")),
+
+                // Bad 1st char after %
+                () -> assertThrows(DecoderException.class, () -> urlCodec.decode("%A")),

Review comment:
       So old line 135 and 137 appear to be the exact same... so that got merged into new line 140.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org