You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/01/16 16:50:29 UTC
[commons-validator] 02/04: Format tweak
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-validator.git
commit fc102c65e9b3964aeea32d467170674949f2ba35
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jan 16 11:45:38 2023 -0500
Format tweak
---
.../org/apache/commons/validator/routines/RegexValidatorTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java b/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java
index 434be40e..f06fae6e 100644
--- a/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java
+++ b/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java
@@ -191,7 +191,7 @@ public class RegexValidatorTest extends TestCase {
// Single Regular Expression - null
try {
- new RegexValidator((String)null);
+ new RegexValidator((String) null);
fail("Single Null - expected IllegalArgumentException");
} catch (final IllegalArgumentException e) {
assertEquals("Single Null", "Regular expression[0] is missing", e.getMessage());
@@ -207,7 +207,7 @@ public class RegexValidatorTest extends TestCase {
// Multiple Regular Expression - Null array
try {
- new RegexValidator((String[])null);
+ new RegexValidator((String[]) null);
fail("Null Array - expected IllegalArgumentException");
} catch (final IllegalArgumentException e) {
assertEquals("Null Array", "Regular expressions are missing", e.getMessage());
@@ -222,7 +222,7 @@ public class RegexValidatorTest extends TestCase {
}
// Multiple Regular Expression - Array has Null
- String[] expressions = {"ABC", null};
+ String[] expressions = { "ABC", null };
try {
new RegexValidator(expressions);
fail("Array has Null - expected IllegalArgumentException");
@@ -231,7 +231,7 @@ public class RegexValidatorTest extends TestCase {
}
// Multiple Regular Expression - Array has Zero Length
- expressions = new String[] {"", "ABC"};
+ expressions = new String[] { "", "ABC" };
try {
new RegexValidator(expressions);
fail("Array has Zero Length - expected IllegalArgumentException");