Remove extra blank lines
This commit is contained in:
parent
7182f72061
commit
f04b12b9ce
|
@ -778,7 +778,6 @@ public class ArrayUtils {
|
|||
return (T[]) add(array, index, element, clazz);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Copies the given array and adds the given element at the end of the new array.
|
||||
* <p>
|
||||
|
@ -3521,7 +3520,6 @@ public class ArrayUtils {
|
|||
return getLength(array1) == getLength(array2);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checks whether two arrays are the same length, treating
|
||||
* {@code null} arrays as length {@code 0}.
|
||||
|
@ -4080,7 +4078,6 @@ public class ArrayUtils {
|
|||
return INDEX_NOT_FOUND;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Finds the last index of the given value within the array.
|
||||
* <p>
|
||||
|
@ -8286,7 +8283,6 @@ public class ArrayUtils {
|
|||
swap(array, offset1, offset2, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Swaps a series of elements in the given boolean array.
|
||||
*
|
||||
|
|
|
@ -18,7 +18,6 @@ package org.apache.commons.lang3;
|
|||
|
||||
import java.util.UUID;
|
||||
|
||||
|
||||
/**
|
||||
* Static methods to convert a type into another, with endianness and bit ordering awareness.
|
||||
*
|
||||
|
|
|
@ -756,7 +756,6 @@ public class ObjectUtils {
|
|||
return Integer.toHexString(Objects.hashCode(object));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the hash code for multiple objects.
|
||||
*
|
||||
|
@ -937,7 +936,6 @@ public class ObjectUtils {
|
|||
.append(hexString);
|
||||
}
|
||||
|
||||
|
||||
// Constants (LANG-816):
|
||||
/*
|
||||
These methods ensure constants are not inlined by javac.
|
||||
|
@ -1164,7 +1162,6 @@ public class ObjectUtils {
|
|||
return result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Find the most frequently occurring item.
|
||||
*
|
||||
|
|
|
@ -455,7 +455,6 @@ public class RandomStringUtils {
|
|||
return random(count, 32, 126, false, false);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a random string whose length is between the inclusive minimum and
|
||||
* the exclusive maximum.
|
||||
|
|
|
@ -759,7 +759,6 @@ public class StringEscapeUtils {
|
|||
return UNESCAPE_JSON.translate(input);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Unescapes a string containing XML entity escapes to a string
|
||||
* containing the actual Unicode characters corresponding to the
|
||||
|
|
|
@ -4470,7 +4470,6 @@ public class StringUtils {
|
|||
return join(subList.iterator(), separator);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Joins the elements of the provided array into a single String containing the provided list of elements.
|
||||
*
|
||||
|
|
|
@ -384,7 +384,6 @@ public class EqualsBuilder implements Builder<Boolean> {
|
|||
bypassReflectionClasses.add(String.class); //hashCode field being lazy but not transient
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test if two {@code booleans}s are equal.
|
||||
*
|
||||
|
|
|
@ -126,7 +126,6 @@ public class ReflectionDiffBuilder<T> implements Builder<DiffResult<T>> {
|
|||
return !field.isAnnotationPresent(DiffExclude.class);
|
||||
}
|
||||
|
||||
|
||||
private void appendFields(final Class<?> clazz) {
|
||||
for (final Field field : FieldUtils.getAllFields(clazz)) {
|
||||
if (accept(field)) {
|
||||
|
|
|
@ -413,7 +413,6 @@ public class ReflectionToStringBuilder extends ToStringBuilder {
|
|||
return new ReflectionToStringBuilder(object).setExcludeFieldNames(excludeFieldNames).toString();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Builds a String for a toString method including the given field names.
|
||||
*
|
||||
|
|
|
@ -90,7 +90,6 @@ public final class Fraction extends Number implements Comparable<Fraction> {
|
|||
*/
|
||||
public static final Fraction FOUR_FIFTHS = new Fraction(4, 5);
|
||||
|
||||
|
||||
/**
|
||||
* Add two integers, checking for overflow.
|
||||
*
|
||||
|
|
|
@ -85,7 +85,6 @@ public class NumberUtils {
|
|||
*/
|
||||
public static final Long LONG_INT_MIN_VALUE = Long.valueOf(Integer.MIN_VALUE);
|
||||
|
||||
|
||||
/**
|
||||
* Compares two {@code byte} values numerically. This is the same functionality as provided in Java 7.
|
||||
*
|
||||
|
|
|
@ -801,7 +801,6 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
|
|||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Appends each item in an array to the builder without any separators.
|
||||
* Appending a null array will have no effect.
|
||||
|
|
|
@ -214,7 +214,6 @@ public class StrTokenizer implements ListIterator<String>, Cloneable {
|
|||
/** The text to work on. */
|
||||
private char[] chars;
|
||||
|
||||
|
||||
/** The parsed tokens */
|
||||
private String[] tokens;
|
||||
|
||||
|
@ -230,7 +229,6 @@ public class StrTokenizer implements ListIterator<String>, Cloneable {
|
|||
/** The ignored matcher */
|
||||
private StrMatcher ignoredMatcher = StrMatcher.noneMatcher();
|
||||
|
||||
|
||||
/** The trimmer matcher */
|
||||
private StrMatcher trimmerMatcher = StrMatcher.noneMatcher();
|
||||
|
||||
|
|
|
@ -83,7 +83,6 @@ abstract class AbstractFormatCache<F extends Format> {
|
|||
return hashCode;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -139,7 +139,6 @@ public interface DatePrinter {
|
|||
@Deprecated
|
||||
StringBuffer format(long millis, StringBuffer buf);
|
||||
|
||||
|
||||
/**
|
||||
* Formats a {@link Date}, {@link Calendar} or
|
||||
* {@link Long} (milliseconds) object.
|
||||
|
|
|
@ -508,7 +508,6 @@ public class DurationFormatUtils {
|
|||
final TimeZone timezone) {
|
||||
Validate.isTrue(startMillis <= endMillis, "startMillis must not be greater than endMillis");
|
||||
|
||||
|
||||
// Used to optimise for differences under 28 days and
|
||||
// called formatDuration(millis, format); however this did not work
|
||||
// over leap years.
|
||||
|
|
|
@ -537,7 +537,6 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
|
|||
|
||||
// Parsing
|
||||
|
||||
|
||||
/**
|
||||
* Formats a millisecond {@code long} value into the
|
||||
* supplied {@link StringBuffer}.
|
||||
|
|
|
@ -1308,7 +1308,6 @@ public class FastDatePrinter implements DatePrinter, Serializable {
|
|||
maxLengthEstimate = len;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a new Calendar instance.
|
||||
* @return a new Calendar instance.
|
||||
|
|
|
@ -53,7 +53,6 @@ public class ArrayUtilsInsertTest extends AbstractLangTest {
|
|||
assertArrayEquals(new boolean[]{true, false, true, false, true, false}, ArrayUtils.insert(array.length, array, values));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testInsertBytes() {
|
||||
final byte[] array = {1, 2, 3};
|
||||
|
@ -176,7 +175,6 @@ public class ArrayUtilsInsertTest extends AbstractLangTest {
|
|||
assertArrayEquals(new String[]{"a", "b", "c", "d", "e", "f"}, ArrayUtils.insert(array.length, array, values));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testInsertInts() {
|
||||
final int[] array = {1, 2, 3};
|
||||
|
@ -201,7 +199,6 @@ public class ArrayUtilsInsertTest extends AbstractLangTest {
|
|||
assertArrayEquals(new int[]{1, 2, 3, 4, 5, 6}, ArrayUtils.insert(array.length, array, values));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testInsertLongs() {
|
||||
final long[] array = {1, 2, 3};
|
||||
|
@ -226,7 +223,6 @@ public class ArrayUtilsInsertTest extends AbstractLangTest {
|
|||
assertArrayEquals(new long[]{1, 2, 3, 4, 5, 6}, ArrayUtils.insert(array.length, array, values));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testInsertShorts() {
|
||||
final short[] array = {1, 2, 3};
|
||||
|
|
|
@ -603,7 +603,6 @@ public class ArrayUtilsRemoveTest extends AbstractLangTest {
|
|||
assertEquals(Integer.TYPE, array.getClass().getComponentType());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testRemoveElementLongArray() {
|
||||
long[] array;
|
||||
|
|
|
@ -4608,7 +4608,6 @@ public class ArrayUtilsTest extends AbstractLangTest {
|
|||
assertEquals(2, array[3]);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testShiftInt() {
|
||||
final int[] array = {1, 2, 3, 4};
|
||||
|
@ -5319,7 +5318,6 @@ public class ArrayUtilsTest extends AbstractLangTest {
|
|||
final int[] midSubarray = {11, 12, 13, 14};
|
||||
final int[] rightSubarray = {12, 13, 14, 15};
|
||||
|
||||
|
||||
assertTrue(ArrayUtils.isEquals(leftSubarray, ArrayUtils.subarray(array, 0, 4)), "0 start, mid end");
|
||||
|
||||
assertTrue(ArrayUtils.isEquals(array, ArrayUtils.subarray(array, 0, array.length)), "0 start, length end");
|
||||
|
@ -5329,7 +5327,6 @@ public class ArrayUtilsTest extends AbstractLangTest {
|
|||
assertTrue(ArrayUtils.isEquals(rightSubarray, ArrayUtils.subarray(array, 2, array.length)),
|
||||
"mid start, length end");
|
||||
|
||||
|
||||
assertNull(ArrayUtils.subarray(nullArray, 0, 3), "null input");
|
||||
|
||||
assertEquals(ArrayUtils.EMPTY_INT_ARRAY, ArrayUtils.subarray(ArrayUtils.EMPTY_INT_ARRAY, 1, 2), "empty array");
|
||||
|
|
|
@ -225,7 +225,6 @@ public class CharSequenceUtilsTest extends AbstractLangTest {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
private void testNewLastIndexOfSingle(final CharSequence a, final CharSequence b) {
|
||||
final int maxa = Math.max(a.length(), b.length());
|
||||
for (int i = -maxa - 10; i <= maxa + 10; i++) {
|
||||
|
|
|
@ -34,7 +34,6 @@ run_CharUtils_isAsciiNumeric: 4,545 milliseconds.
|
|||
run_inlined_CharUtils_isAsciiNumeric: 3,417 milliseconds.
|
||||
run_inlined_CharUtils_isAsciiNumeric: 85,679 milliseconds.
|
||||
|
||||
|
||||
Now: Thu Mar 18 14:24:51 PST 2004
|
||||
Sun Microsystems Inc. Java(TM) 2 Runtime Environment, Standard Edition 1.4.2_04-b05
|
||||
Sun Microsystems Inc. Java HotSpot(TM) Client VM 1.4.2_04-b05
|
||||
|
@ -53,7 +52,6 @@ run_CharUtils_isAsciiNumeric: 630 milliseconds.
|
|||
run_inlined_CharUtils_isAsciiNumeric: 709 milliseconds.
|
||||
run_inlined_CharUtils_isAsciiNumeric: 84,420 milliseconds.
|
||||
|
||||
|
||||
*/
|
||||
public class CharUtilsPerfRun {
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ import org.junit.jupiter.api.Test;
|
|||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
|
||||
/**
|
||||
* Unit tests {@link Conversion}.
|
||||
*/
|
||||
|
|
|
@ -501,7 +501,6 @@ public class RandomStringUtilsTest extends AbstractLangTest {
|
|||
assertEquals("", r1, "random(0).equals(\"\")");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test homogeneity of random strings generated --
|
||||
* i.e., test that characters show up with expected frequencies
|
||||
|
|
|
@ -71,7 +71,6 @@ public class SerializationUtilsTest extends AbstractLangTest {
|
|||
iMap.put("BAR", iInteger);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testClone() {
|
||||
final Object test = SerializationUtils.clone(iMap);
|
||||
|
@ -92,7 +91,6 @@ public class SerializationUtilsTest extends AbstractLangTest {
|
|||
assertNull(test);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testCloneUnserializable() {
|
||||
iMap.put(new Object(), new Object());
|
||||
|
@ -151,7 +149,6 @@ public class SerializationUtilsTest extends AbstractLangTest {
|
|||
assertNull(test);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testDeserializeClassCastException() {
|
||||
final String value = "Hello";
|
||||
|
@ -276,7 +273,6 @@ public class SerializationUtilsTest extends AbstractLangTest {
|
|||
assertArrayEquals(realBytes, testBytes);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testSerializeBytesNull() throws Exception {
|
||||
final byte[] testBytes = SerializationUtils.serialize(null);
|
||||
|
@ -330,7 +326,6 @@ public class SerializationUtilsTest extends AbstractLangTest {
|
|||
assertArrayEquals(realBytes, testBytes);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testSerializeStreamNullNull() {
|
||||
assertThrows(NullPointerException.class, () -> SerializationUtils.serialize(null, null));
|
||||
|
|
|
@ -132,7 +132,6 @@ public class StringEscapeUtilsTest extends AbstractLangTest {
|
|||
assertNull(StringEscapeUtils.escapeCsv(null));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testEscapeCsvWriter() throws Exception {
|
||||
checkCsvEscapeWriter("foo.bar", "foo.bar");
|
||||
|
|
|
@ -21,7 +21,6 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Unit tests {@link org.apache.commons.lang3.StringUtils} - StartsWith/EndsWith methods
|
||||
*/
|
||||
|
@ -33,7 +32,6 @@ public class StringUtilsStartsEndsWithTest extends AbstractLangTest {
|
|||
private static final String BAR = "BAR";
|
||||
private static final String FOOBAR = "FOOBAR";
|
||||
|
||||
|
||||
/**
|
||||
* Test StringUtils.endsWith()
|
||||
*/
|
||||
|
@ -130,7 +128,6 @@ public class StringUtilsStartsEndsWithTest extends AbstractLangTest {
|
|||
"endsWith(\u03B1\u03B2\u03B3\u03B4, \u0393)");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test StringUtils.startsWith()
|
||||
*/
|
||||
|
@ -196,5 +193,4 @@ public class StringUtilsStartsEndsWithTest extends AbstractLangTest {
|
|||
assertFalse(StringUtils.startsWithIgnoreCase(FOOBAR, bar), "startsWithIgnoreCase(FOOBAR, bar)");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -32,7 +32,6 @@ public class StringUtilsSubstringTest extends AbstractLangTest {
|
|||
private static final String FOOBAR = "foobar";
|
||||
private static final String SENTENCE = "foo bar baz";
|
||||
|
||||
|
||||
@Test
|
||||
public void testCountMatches_char() {
|
||||
assertEquals(0, StringUtils.countMatches(null, 'D'));
|
||||
|
|
|
@ -676,7 +676,6 @@ public class StringUtilsTest extends AbstractLangTest {
|
|||
assertEquals("abc", s);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testDefaultIfEmpty_CharBuffers() {
|
||||
assertEquals("NULL", StringUtils.defaultIfEmpty(CharBuffer.wrap(""), CharBuffer.wrap("NULL")).toString());
|
||||
|
@ -697,7 +696,6 @@ public class StringUtilsTest extends AbstractLangTest {
|
|||
assertEquals("abc", s.toString());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testDefaultIfEmpty_StringBuilders() {
|
||||
assertEquals("NULL", StringUtils.defaultIfEmpty(new StringBuilder(""), new StringBuilder("NULL")).toString());
|
||||
|
@ -746,7 +744,6 @@ public class StringUtilsTest extends AbstractLangTest {
|
|||
assertEquals("you are a robot", StringUtils.difference("i am a robot", "you are a robot"));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testDifferenceAt_StringArray() {
|
||||
assertEquals(-1, StringUtils.indexOfDifference((String[]) null));
|
||||
|
@ -1182,7 +1179,6 @@ public class StringUtilsTest extends AbstractLangTest {
|
|||
assertEquals("", StringUtils.join(MIXED_TYPE_LIST, '/', 2, 1));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testJoin_ArrayOfBooleans() {
|
||||
assertNull(StringUtils.join((boolean[]) null, COMMA_SEPARATOR_CHAR));
|
||||
|
|
|
@ -269,7 +269,6 @@ public class SystemPropertiesTest {
|
|||
assertNotNull(SystemProperties.getOsName());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testGetOsVersion() {
|
||||
assertNotNull(SystemProperties.getOsVersion());
|
||||
|
|
|
@ -30,7 +30,6 @@ import org.junit.jupiter.api.Test;
|
|||
*/
|
||||
public class CompareToBuilderTest extends AbstractLangTest {
|
||||
|
||||
|
||||
static class TestObject implements Comparable<TestObject> {
|
||||
private int a;
|
||||
TestObject(final int a) {
|
||||
|
@ -997,7 +996,6 @@ public class CompareToBuilderTest extends AbstractLangTest {
|
|||
array3[1][2] = 100;
|
||||
array3[1][2] = 100;
|
||||
|
||||
|
||||
assertEquals(0, new CompareToBuilder().append(array1, array1).toComparison());
|
||||
assertEquals(0, new CompareToBuilder().append(array1, array2).toComparison());
|
||||
assertTrue(new CompareToBuilder().append(array1, array3).toComparison() < 0);
|
||||
|
|
|
@ -30,7 +30,6 @@ import org.apache.commons.lang3.ArrayUtils;
|
|||
import org.hamcrest.Matcher;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Unit tests {@link DiffBuilder}.
|
||||
*/
|
||||
|
|
|
@ -22,7 +22,6 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
|||
import org.apache.commons.lang3.AbstractLangTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Unit tests {@link Diff}.
|
||||
*/
|
||||
|
|
|
@ -37,7 +37,6 @@ import org.junit.jupiter.api.Test;
|
|||
*/
|
||||
public class EqualsBuilderTest extends AbstractLangTest {
|
||||
|
||||
|
||||
public static class TestACanEqualB {
|
||||
private final int a;
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ import org.junit.jupiter.api.Test;
|
|||
*/
|
||||
public class HashCodeBuilderAndEqualsBuilderTest extends AbstractLangTest {
|
||||
|
||||
|
||||
static class AllTransientFixture {
|
||||
transient int i;
|
||||
transient char c;
|
||||
|
@ -134,5 +133,4 @@ public class HashCodeBuilderAndEqualsBuilderTest extends AbstractLangTest {
|
|||
testInteger(true);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -56,7 +56,6 @@ public class ReflectionDiffBuilderTest extends AbstractLangTest {
|
|||
private String annotatedField = "a";
|
||||
private String excludedField = "a";
|
||||
|
||||
|
||||
@Override
|
||||
public DiffResult diff(final TypeTestClass obj) {
|
||||
return new ReflectionDiffBuilder(this, obj, style).setExcludeFieldNames("excludedField").build();
|
||||
|
|
|
@ -299,7 +299,6 @@ public class ToStringBuilderTest extends AbstractLangTest {
|
|||
assertEquals(baseStr + "[{1,2,-3,4}]", new ToStringBuilder(base).append(null, array).toString());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testAppendByteArrayWithFieldNameAndFullDetatil() {
|
||||
final byte[] array = { 1, 2, -3, 4 };
|
||||
|
@ -529,7 +528,6 @@ public class ToStringBuilderTest extends AbstractLangTest {
|
|||
assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) array).toString());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testBooleanArrayArray() {
|
||||
boolean[][] array = {{true, false}, null, {false}};
|
||||
|
@ -557,7 +555,6 @@ public class ToStringBuilderTest extends AbstractLangTest {
|
|||
assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) array).toString());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testByteArrayArray() {
|
||||
byte[][] array = {{1, 2}, null, {5}};
|
||||
|
@ -798,7 +795,6 @@ public class ToStringBuilderTest extends AbstractLangTest {
|
|||
assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) array).toString());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testObjectBuild() {
|
||||
final Integer i3 = Integer.valueOf(3);
|
||||
|
@ -945,7 +941,6 @@ public class ToStringBuilderTest extends AbstractLangTest {
|
|||
assertReflectionArray("<null>", array);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test wrapper for char primitive.
|
||||
*/
|
||||
|
|
|
@ -24,7 +24,6 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
|||
import org.apache.commons.lang3.exception.AbstractExceptionTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* JUnit tests for {@link CircuitBreakingException}.
|
||||
*/
|
||||
|
|
|
@ -113,7 +113,6 @@ public class EventUtilsTest extends AbstractLangTest {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public static class PropertyChangeSource {
|
||||
private final EventListenerSupport<PropertyChangeListener> listeners = EventListenerSupport.create(PropertyChangeListener.class);
|
||||
|
||||
|
@ -138,7 +137,6 @@ public class EventUtilsTest extends AbstractLangTest {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testAddEventListener() {
|
||||
final PropertyChangeSource src = new PropertyChangeSource();
|
||||
|
@ -183,7 +181,6 @@ public class EventUtilsTest extends AbstractLangTest {
|
|||
e.getMessage());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testBindEventsToMethod() {
|
||||
final PropertyChangeSource src = new PropertyChangeSource();
|
||||
|
|
|
@ -34,7 +34,6 @@ import org.apache.commons.lang3.tuple.Pair;
|
|||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Abstract test of an ExceptionContext implementation.
|
||||
*/
|
||||
|
@ -51,7 +50,6 @@ public abstract class AbstractExceptionContextTest<T extends ExceptionContext &
|
|||
|
||||
protected T exceptionContext;
|
||||
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
exceptionContext
|
||||
|
|
|
@ -126,7 +126,6 @@ public class ExceptionUtilsTest extends AbstractLangTest {
|
|||
|
||||
private ExceptionWithCause cyclicCause;
|
||||
|
||||
|
||||
private Throwable jdkNoCause;
|
||||
|
||||
private NestableException nested;
|
||||
|
|
|
@ -291,7 +291,6 @@ public class FractionTest extends AbstractLangTest {
|
|||
assertThrows(ArithmeticException.class, () -> negative.divideBy(negative.invert())); // Should overflow
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testEquals() {
|
||||
Fraction f1;
|
||||
|
@ -685,7 +684,6 @@ public class FractionTest extends AbstractLangTest {
|
|||
assertEquals(6, f.getNumerator());
|
||||
assertEquals(25, f.getDenominator());
|
||||
|
||||
|
||||
f1 = Fraction.getFraction(0, 5);
|
||||
f2 = Fraction.getFraction(2, 7);
|
||||
f = f1.multiplyBy(f2);
|
||||
|
|
|
@ -24,7 +24,6 @@ import static org.junit.jupiter.api.Assertions.assertSame;
|
|||
import org.apache.commons.lang3.AbstractLangTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* JUnit tests.
|
||||
*
|
||||
|
|
|
@ -128,7 +128,6 @@ public class ConstructorUtilsTest extends AbstractLangTest {
|
|||
classCache = new HashMap<>();
|
||||
}
|
||||
|
||||
|
||||
private void expectMatchingAccessibleConstructorParameterTypes(final Class<?> cls,
|
||||
final Class<?>[] requestTypes, final Class<?>[] actualTypes) {
|
||||
final Constructor<?> c = ConstructorUtils.getMatchingAccessibleConstructor(cls,
|
||||
|
|
|
@ -387,7 +387,6 @@ public class ExtendedMessageFormatTest extends AbstractLangTest {
|
|||
assertEquals("Message with placeholder 'DUMMY'", emf2.format(new Object[] {"DUMMY"}));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test Bug LANG-477 - out of memory error with escaped quote
|
||||
*/
|
||||
|
|
|
@ -34,7 +34,6 @@ public class StrMatcherTest extends AbstractLangTest {
|
|||
|
||||
private static final char[] BUFFER2 = "abcdef".toCharArray();
|
||||
|
||||
|
||||
@Test
|
||||
public void testCharMatcher_char() {
|
||||
final StrMatcher matcher = StrMatcher.charMatcher('c');
|
||||
|
|
|
@ -70,5 +70,4 @@ public class EntityArraysTest extends AbstractLangTest {
|
|||
assertTrue(success, "One or more errors detected");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -38,7 +38,6 @@ public class DateUtilsFragmentTest extends AbstractLangTest {
|
|||
private Date aDate;
|
||||
private Calendar aCalendar;
|
||||
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
aCalendar = Calendar.getInstance();
|
||||
|
@ -325,7 +324,6 @@ testResult);
|
|||
assertEquals(expectedValue, testResult);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testMinutesOfHourWithCalendar() {
|
||||
final long testResult = DateUtils.getFragmentInMinutes(aCalendar, Calendar.HOUR_OF_DAY);
|
||||
|
|
|
@ -58,7 +58,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
|
|||
@SuppressWarnings("deprecation")
|
||||
FastDateFormat fdf = DateFormatUtils.ISO_DATETIME_FORMAT;
|
||||
|
||||
|
||||
/**
|
||||
* When using this basetest all extremes are tested.<br>
|
||||
* It will test the Date, Calendar and Object-implementation<br>
|
||||
|
|
|
@ -956,7 +956,6 @@ public class DateUtilsTest extends AbstractLangTest {
|
|||
DateUtils.round(date2, DateUtils.SEMI_MONTH),
|
||||
"round semimonth-2 failed");
|
||||
|
||||
|
||||
assertEquals(dateParser.parse("February 13, 2002"),
|
||||
DateUtils.round(date1, Calendar.DATE),
|
||||
"round date-1 failed");
|
||||
|
|
|
@ -238,7 +238,6 @@ public class DurationFormatUtilsTest extends AbstractLangTest {
|
|||
assertEqualDuration("48", new int[] { 1992, 1, 29, 0, 0, 0 },
|
||||
new int[] { 1996, 1, 29, 0, 0, 0 }, "M");
|
||||
|
||||
|
||||
// this seems odd - and will fail if I throw it in as a brute force
|
||||
// below as it expects the answer to be 12. It's a tricky edge case
|
||||
assertEqualDuration("11", new int[] { 1996, 1, 29, 0, 0, 0 },
|
||||
|
@ -445,7 +444,6 @@ public class DurationFormatUtilsTest extends AbstractLangTest {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testFormatNegativeDuration() {
|
||||
assertThrows(IllegalArgumentException.class, () -> DurationFormatUtils.formatDuration(-5000, "S", true));
|
||||
|
@ -611,7 +609,6 @@ public class DurationFormatUtilsTest extends AbstractLangTest {
|
|||
assertEquals("1 01999", DurationFormatUtils.formatDuration(61999, "m SSSSS"));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testLANG984() { // Long durations
|
||||
assertEquals("0", DurationFormatUtils.formatDuration(0, "S"));
|
||||
|
|
|
@ -42,7 +42,6 @@ public class MutableTripleTest extends AbstractLangTest {
|
|||
assertEquals("hello", triple2.getRight());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testDefault() {
|
||||
final MutableTriple<Integer, String, Boolean> triple = new MutableTriple<>();
|
||||
|
|
Loading…
Reference in New Issue