From 6bc8650ed456810d600feea4b80a665fb5895832 Mon Sep 17 00:00:00 2001 From: Allon Mureinik Date: Tue, 14 Mar 2017 11:45:03 +0200 Subject: [PATCH] Remove test wildcard imports This patch applies the de-facto project's coding standard on the test files and replaces wildcard static imports with series of single method imports. --- .../commons/lang3/ArrayUtilsInsertTest.java | 5 ++- .../commons/lang3/CharSequenceUtilsTest.java | 35 ++++++++++--------- .../apache/commons/lang3/JavaVersionTest.java | 4 ++- .../lang3/StringUtilsStartsEndsWithTest.java | 5 ++- .../apache/commons/lang3/StringUtilsTest.java | 9 ++++- .../MultilineRecursiveToStringStyleTest.java | 2 +- .../concurrent/BackgroundInitializerTest.java | 8 ++++- .../AbstractExceptionContextTest.java | 3 +- .../lang3/mutable/MutableBooleanTest.java | 5 ++- .../lang3/mutable/MutableByteTest.java | 5 ++- .../lang3/mutable/MutableDoubleTest.java | 5 ++- .../lang3/mutable/MutableFloatTest.java | 5 ++- .../commons/lang3/mutable/MutableIntTest.java | 5 ++- .../lang3/mutable/MutableLongTest.java | 5 ++- .../lang3/mutable/MutableObjectTest.java | 7 +++- .../lang3/mutable/MutableShortTest.java | 6 +++- .../commons/lang3/reflect/FieldUtilsTest.java | 18 ++++++++-- .../lang3/text/CompositeFormatTest.java | 4 ++- .../lang3/text/ExtendedMessageFormatTest.java | 5 ++- .../text/StrBuilderAppendInsertTest.java | 4 ++- .../commons/lang3/text/StrBuilderTest.java | 9 ++++- .../commons/lang3/text/StrTokenizerTest.java | 6 +++- .../commons/lang3/text/WordUtilsTest.java | 5 ++- .../text/translate/OctalUnescaperTest.java | 2 +- .../UnicodeUnpairedSurrogateRemoverTest.java | 2 +- .../lang3/time/DateUtilsFragmentTest.java | 4 ++- .../lang3/time/DateUtilsRoundingTest.java | 5 ++- 27 files changed, 135 insertions(+), 43 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/ArrayUtilsInsertTest.java b/src/test/java/org/apache/commons/lang3/ArrayUtilsInsertTest.java index 02895c8d2..86b091613 100644 --- a/src/test/java/org/apache/commons/lang3/ArrayUtilsInsertTest.java +++ b/src/test/java/org/apache/commons/lang3/ArrayUtilsInsertTest.java @@ -17,7 +17,10 @@ package org.apache.commons.lang3; -import static org.junit.Assert.*; +import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.fail; import org.junit.Test; diff --git a/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java b/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java index 6ab9aae29..591bf3886 100644 --- a/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java @@ -16,13 +16,16 @@ */ package org.apache.commons.lang3; -import static org.junit.Assert.*; +import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; import java.lang.reflect.Constructor; import java.lang.reflect.Modifier; -import org.junit.Assert; - import org.junit.Test; /** @@ -47,27 +50,27 @@ public class CharSequenceUtilsTest { // // null input // - Assert.assertEquals(null, CharSequenceUtils.subSequence(null, -1)); - Assert.assertEquals(null, CharSequenceUtils.subSequence(null, 0)); - Assert.assertEquals(null, CharSequenceUtils.subSequence(null, 1)); + assertEquals(null, CharSequenceUtils.subSequence(null, -1)); + assertEquals(null, CharSequenceUtils.subSequence(null, 0)); + assertEquals(null, CharSequenceUtils.subSequence(null, 1)); // // non-null input // - Assert.assertEquals(StringUtils.EMPTY, CharSequenceUtils.subSequence(StringUtils.EMPTY, 0)); - Assert.assertEquals("012", CharSequenceUtils.subSequence("012", 0)); - Assert.assertEquals("12", CharSequenceUtils.subSequence("012", 1)); - Assert.assertEquals("2", CharSequenceUtils.subSequence("012", 2)); - Assert.assertEquals(StringUtils.EMPTY, CharSequenceUtils.subSequence("012", 3)); + assertEquals(StringUtils.EMPTY, CharSequenceUtils.subSequence(StringUtils.EMPTY, 0)); + assertEquals("012", CharSequenceUtils.subSequence("012", 0)); + assertEquals("12", CharSequenceUtils.subSequence("012", 1)); + assertEquals("2", CharSequenceUtils.subSequence("012", 2)); + assertEquals(StringUtils.EMPTY, CharSequenceUtils.subSequence("012", 3)); } @Test(expected=IndexOutOfBoundsException.class) public void testSubSequenceNegativeStart() { - Assert.assertEquals(null, CharSequenceUtils.subSequence(StringUtils.EMPTY, -1)); + assertEquals(null, CharSequenceUtils.subSequence(StringUtils.EMPTY, -1)); } @Test(expected=IndexOutOfBoundsException.class) public void testSubSequenceTooLong() { - Assert.assertEquals(null, CharSequenceUtils.subSequence(StringUtils.EMPTY, 1)); + assertEquals(null, CharSequenceUtils.subSequence(StringUtils.EMPTY, 1)); } static class TestData{ @@ -142,15 +145,15 @@ public class CharSequenceUtilsTest { if (data.throwable != null) { try { invoke(); - Assert.fail(id + " Expected " + data.throwable); + fail(id + " Expected " + data.throwable); } catch (final Exception e) { if (!e.getClass().equals(data.throwable)) { - Assert.fail(id + " Expected " + data.throwable + " got " + e.getClass()); + fail(id + " Expected " + data.throwable + " got " + e.getClass()); } } } else { final boolean stringCheck = invoke(); - Assert.assertEquals(id + " Failed test " + data, data.expected, stringCheck); + assertEquals(id + " Failed test " + data, data.expected, stringCheck); } } diff --git a/src/test/java/org/apache/commons/lang3/JavaVersionTest.java b/src/test/java/org/apache/commons/lang3/JavaVersionTest.java index 2f95697ca..2e8c2d5f1 100644 --- a/src/test/java/org/apache/commons/lang3/JavaVersionTest.java +++ b/src/test/java/org/apache/commons/lang3/JavaVersionTest.java @@ -21,7 +21,9 @@ package org.apache.commons.lang3; import org.junit.Test; import static org.apache.commons.lang3.JavaVersion.JAVA_RECENT; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; import static org.apache.commons.lang3.JavaVersion.JAVA_0_9; import static org.apache.commons.lang3.JavaVersion.JAVA_1_1; import static org.apache.commons.lang3.JavaVersion.JAVA_1_2; diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsStartsEndsWithTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsStartsEndsWithTest.java index 196ff47b8..edd225065 100644 --- a/src/test/java/org/apache/commons/lang3/StringUtilsStartsEndsWithTest.java +++ b/src/test/java/org/apache/commons/lang3/StringUtilsStartsEndsWithTest.java @@ -17,7 +17,10 @@ package org.apache.commons.lang3; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + import org.apache.commons.lang3.text.StrBuilder; /** diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java index 4c136ec18..8c76144ad 100644 --- a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java @@ -16,7 +16,14 @@ */ package org.apache.commons.lang3; -import static org.junit.Assert.*; +import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertSame; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; import java.io.UnsupportedEncodingException; import java.lang.reflect.Constructor; diff --git a/src/test/java/org/apache/commons/lang3/builder/MultilineRecursiveToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/MultilineRecursiveToStringStyleTest.java index 5e74aec6f..daf2881f1 100644 --- a/src/test/java/org/apache/commons/lang3/builder/MultilineRecursiveToStringStyleTest.java +++ b/src/test/java/org/apache/commons/lang3/builder/MultilineRecursiveToStringStyleTest.java @@ -17,7 +17,7 @@ package org.apache.commons.lang3.builder; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; import java.util.ArrayList; import java.util.List; diff --git a/src/test/java/org/apache/commons/lang3/concurrent/BackgroundInitializerTest.java b/src/test/java/org/apache/commons/lang3/concurrent/BackgroundInitializerTest.java index 7537f3bf3..f7d3261fc 100644 --- a/src/test/java/org/apache/commons/lang3/concurrent/BackgroundInitializerTest.java +++ b/src/test/java/org/apache/commons/lang3/concurrent/BackgroundInitializerTest.java @@ -18,7 +18,13 @@ package org.apache.commons.lang3.concurrent; import org.junit.Test; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertSame; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; diff --git a/src/test/java/org/apache/commons/lang3/exception/AbstractExceptionContextTest.java b/src/test/java/org/apache/commons/lang3/exception/AbstractExceptionContextTest.java index e569ade47..6787bb5a8 100644 --- a/src/test/java/org/apache/commons/lang3/exception/AbstractExceptionContextTest.java +++ b/src/test/java/org/apache/commons/lang3/exception/AbstractExceptionContextTest.java @@ -19,7 +19,8 @@ package org.apache.commons.lang3.exception; import org.junit.Test; import org.junit.Before; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; import java.io.Serializable; import java.util.Arrays; diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableBooleanTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableBooleanTest.java index 77db87d37..67c6229a0 100644 --- a/src/test/java/org/apache/commons/lang3/mutable/MutableBooleanTest.java +++ b/src/test/java/org/apache/commons/lang3/mutable/MutableBooleanTest.java @@ -18,7 +18,10 @@ package org.apache.commons.lang3.mutable; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; /** * JUnit tests. diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableByteTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableByteTest.java index b63ea0a1b..10d9aeeed 100644 --- a/src/test/java/org/apache/commons/lang3/mutable/MutableByteTest.java +++ b/src/test/java/org/apache/commons/lang3/mutable/MutableByteTest.java @@ -17,7 +17,10 @@ package org.apache.commons.lang3.mutable; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; /** * JUnit tests. diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableDoubleTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableDoubleTest.java index 6ba4b7198..8cfb8f327 100644 --- a/src/test/java/org/apache/commons/lang3/mutable/MutableDoubleTest.java +++ b/src/test/java/org/apache/commons/lang3/mutable/MutableDoubleTest.java @@ -17,7 +17,10 @@ package org.apache.commons.lang3.mutable; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; /** * JUnit tests. diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableFloatTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableFloatTest.java index ce8851a9b..af4abd8da 100644 --- a/src/test/java/org/apache/commons/lang3/mutable/MutableFloatTest.java +++ b/src/test/java/org/apache/commons/lang3/mutable/MutableFloatTest.java @@ -17,7 +17,10 @@ package org.apache.commons.lang3.mutable; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; /** * JUnit tests. diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableIntTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableIntTest.java index 3e43e4fa1..d7efefd1d 100644 --- a/src/test/java/org/apache/commons/lang3/mutable/MutableIntTest.java +++ b/src/test/java/org/apache/commons/lang3/mutable/MutableIntTest.java @@ -17,7 +17,10 @@ package org.apache.commons.lang3.mutable; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; /** * JUnit tests. diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableLongTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableLongTest.java index 58efbc693..c65c7895b 100644 --- a/src/test/java/org/apache/commons/lang3/mutable/MutableLongTest.java +++ b/src/test/java/org/apache/commons/lang3/mutable/MutableLongTest.java @@ -17,7 +17,10 @@ package org.apache.commons.lang3.mutable; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; /** * JUnit tests. diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableObjectTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableObjectTest.java index 5730d015c..7e0047b7a 100644 --- a/src/test/java/org/apache/commons/lang3/mutable/MutableObjectTest.java +++ b/src/test/java/org/apache/commons/lang3/mutable/MutableObjectTest.java @@ -16,8 +16,13 @@ */ package org.apache.commons.lang3.mutable; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertSame; +import static org.junit.Assert.assertTrue; + import org.junit.Test; -import static org.junit.Assert.*; + /** * JUnit tests. diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableShortTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableShortTest.java index 14543bcdf..2b91b79da 100644 --- a/src/test/java/org/apache/commons/lang3/mutable/MutableShortTest.java +++ b/src/test/java/org/apache/commons/lang3/mutable/MutableShortTest.java @@ -17,7 +17,11 @@ package org.apache.commons.lang3.mutable; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; /** * JUnit tests. diff --git a/src/test/java/org/apache/commons/lang3/reflect/FieldUtilsTest.java b/src/test/java/org/apache/commons/lang3/reflect/FieldUtilsTest.java index 017828b72..3b7ca3c5a 100644 --- a/src/test/java/org/apache/commons/lang3/reflect/FieldUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/reflect/FieldUtilsTest.java @@ -17,7 +17,15 @@ package org.apache.commons.lang3.reflect; import org.apache.commons.lang3.ArrayUtils; -import org.apache.commons.lang3.reflect.testbed.*; + +import org.apache.commons.lang3.reflect.testbed.Ambig; +import org.apache.commons.lang3.reflect.testbed.Annotated; +import org.apache.commons.lang3.reflect.testbed.Foo; +import org.apache.commons.lang3.reflect.testbed.PrivatelyShadowedChild; +import org.apache.commons.lang3.reflect.testbed.PublicChild; +import org.apache.commons.lang3.reflect.testbed.PubliclyShadowedChild; +import org.apache.commons.lang3.reflect.testbed.StaticContainer; +import org.apache.commons.lang3.reflect.testbed.StaticContainerChild; import org.junit.Before; import org.junit.Test; @@ -28,7 +36,13 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import static org.junit.Assert.*; +import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; import static org.junit.Assume.assumeNotNull; /** diff --git a/src/test/java/org/apache/commons/lang3/text/CompositeFormatTest.java b/src/test/java/org/apache/commons/lang3/text/CompositeFormatTest.java index e49ec4134..21f151b7b 100644 --- a/src/test/java/org/apache/commons/lang3/text/CompositeFormatTest.java +++ b/src/test/java/org/apache/commons/lang3/text/CompositeFormatTest.java @@ -18,7 +18,9 @@ package org.apache.commons.lang3.text; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; + import java.text.FieldPosition; import java.text.Format; import java.text.ParsePosition; diff --git a/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java b/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java index 6a717a327..76b0f3334 100644 --- a/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java +++ b/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java @@ -18,7 +18,10 @@ package org.apache.commons.lang3.text; import org.junit.Test; import org.junit.Before; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; import java.text.DateFormat; import java.text.FieldPosition; diff --git a/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java b/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java index 6aa55930a..890a5652f 100644 --- a/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java +++ b/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java @@ -18,7 +18,9 @@ package org.apache.commons.lang3.text; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; import java.text.DecimalFormatSymbols; import java.util.Arrays; diff --git a/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java b/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java index 9c36e92a2..f68c3add1 100644 --- a/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java +++ b/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java @@ -18,7 +18,14 @@ package org.apache.commons.lang3.text; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNotSame; +import static org.junit.Assert.assertSame; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; import java.io.IOException; import java.io.Reader; diff --git a/src/test/java/org/apache/commons/lang3/text/StrTokenizerTest.java b/src/test/java/org/apache/commons/lang3/text/StrTokenizerTest.java index f0f68b6bb..970eacea7 100644 --- a/src/test/java/org/apache/commons/lang3/text/StrTokenizerTest.java +++ b/src/test/java/org/apache/commons/lang3/text/StrTokenizerTest.java @@ -19,7 +19,11 @@ package org.apache.commons.lang3.text; import org.junit.Test; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; import java.util.Arrays; import java.util.Collections; diff --git a/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java b/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java index 4bdd88c3d..a709a77c4 100644 --- a/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java @@ -16,7 +16,10 @@ */ package org.apache.commons.lang3.text; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; import java.lang.reflect.Constructor; import java.lang.reflect.Modifier; diff --git a/src/test/java/org/apache/commons/lang3/text/translate/OctalUnescaperTest.java b/src/test/java/org/apache/commons/lang3/text/translate/OctalUnescaperTest.java index 15473a8ab..70112749e 100644 --- a/src/test/java/org/apache/commons/lang3/text/translate/OctalUnescaperTest.java +++ b/src/test/java/org/apache/commons/lang3/text/translate/OctalUnescaperTest.java @@ -18,7 +18,7 @@ package org.apache.commons.lang3.text.translate; import org.junit.Test; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; /** * Unit tests for {@link org.apache.commons.lang3.text.translate.OctalUnescaper}. diff --git a/src/test/java/org/apache/commons/lang3/text/translate/UnicodeUnpairedSurrogateRemoverTest.java b/src/test/java/org/apache/commons/lang3/text/translate/UnicodeUnpairedSurrogateRemoverTest.java index a79205f40..01db0a833 100644 --- a/src/test/java/org/apache/commons/lang3/text/translate/UnicodeUnpairedSurrogateRemoverTest.java +++ b/src/test/java/org/apache/commons/lang3/text/translate/UnicodeUnpairedSurrogateRemoverTest.java @@ -16,7 +16,7 @@ */ package org.apache.commons.lang3.text.translate; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; import java.io.CharArrayWriter; import java.io.IOException; diff --git a/src/test/java/org/apache/commons/lang3/time/DateUtilsFragmentTest.java b/src/test/java/org/apache/commons/lang3/time/DateUtilsFragmentTest.java index 5f013df8c..519c9d2d0 100644 --- a/src/test/java/org/apache/commons/lang3/time/DateUtilsFragmentTest.java +++ b/src/test/java/org/apache/commons/lang3/time/DateUtilsFragmentTest.java @@ -18,7 +18,9 @@ package org.apache.commons.lang3.time; import org.junit.Test; import org.junit.Before; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; import java.util.Calendar; import java.util.Date; diff --git a/src/test/java/org/apache/commons/lang3/time/DateUtilsRoundingTest.java b/src/test/java/org/apache/commons/lang3/time/DateUtilsRoundingTest.java index e5b8ef984..b2a169bab 100644 --- a/src/test/java/org/apache/commons/lang3/time/DateUtilsRoundingTest.java +++ b/src/test/java/org/apache/commons/lang3/time/DateUtilsRoundingTest.java @@ -18,7 +18,10 @@ package org.apache.commons.lang3.time; import org.junit.Test; import org.junit.Before; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; + import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar;