This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git
The following commit(s) were added to refs/heads/master by this push:
new b851f886 Add missing test
b851f886 is described below
commit b851f8864232bdd0ecf2246746085e6a2b6dace3
Author: Gary Gregory <[email protected]>
AuthorDate: Mon May 27 17:40:56 2024 -0400
Add missing test
---
src/test/java/org/apache/commons/net/util/Base64Test.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/test/java/org/apache/commons/net/util/Base64Test.java
b/src/test/java/org/apache/commons/net/util/Base64Test.java
index 000e3e68..fe398482 100644
--- a/src/test/java/org/apache/commons/net/util/Base64Test.java
+++ b/src/test/java/org/apache/commons/net/util/Base64Test.java
@@ -127,6 +127,7 @@ public class Base64Test {
assertFalse(b64.isUrlSafe());
b64 = new Base64(8, new byte[] {}, true);
assertTrue(b64.isUrlSafe());
+ assertThrows(IllegalArgumentException.class, () -> new Base64(8, new
byte[] { 'A' }, false));
}
@Test