Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a001c19
Add testLang1641()
garydgregory Jul 19, 2024
abb0ca4
Rename some test methods
garydgregory Jul 19, 2024
73e4c9d
Merge remote-tracking branch 'upstream/master'
garydgregory Jul 19, 2024
0bcc867
Merge remote-tracking branch 'upstream/master'
garydgregory Jul 20, 2024
3484d8a
Merge remote-tracking branch 'upstream/master'
garydgregory Nov 3, 2025
dec6a36
Merge remote-tracking branch 'upstream/master'
garydgregory Nov 5, 2025
d959b47
Merge remote-tracking branch 'upstream/master'
garydgregory Nov 11, 2025
78cfdd3
Merge remote-tracking branch 'upstream/master'
garydgregory Nov 17, 2025
dddab49
Merge remote-tracking branch 'upstream/master'
garydgregory Nov 18, 2025
550d4b9
Merge remote-tracking branch 'upstream/master'
garydgregory Nov 25, 2025
22e4e5e
Merge remote-tracking branch 'upstream/master'
garydgregory Nov 27, 2025
a5bcad2
Merge remote-tracking branch 'upstream/master'
garydgregory Jan 9, 2026
9c606b5
Merge remote-tracking branch 'upstream/master'
garydgregory Jan 9, 2026
17d776d
Merge remote-tracking branch 'upstream/master'
garydgregory Jan 9, 2026
cddcb72
Merge remote-tracking branch 'upstream/master'
garydgregory Jan 10, 2026
d7a972c
Merge remote-tracking branch 'upstream/master'
garydgregory Jan 25, 2026
1309d96
Merge remote-tracking branch 'upstream/master'
garydgregory Feb 21, 2026
102fcb0
Merge remote-tracking branch 'upstream/master'
garydgregory Apr 15, 2026
7522574
Merge remote-tracking branch 'upstream/master'
garydgregory Apr 15, 2026
eb393f1
Merge remote-tracking branch 'upstream/master'
garydgregory Apr 21, 2026
307d875
Merge remote-tracking branch 'upstream/master'
garydgregory Apr 25, 2026
528eb8b
Merge remote-tracking branch 'upstream/master'
garydgregory Apr 29, 2026
9f316d5
Merge remote-tracking branch 'upstream/master'
garydgregory May 1, 2026
7be5c1a
Merge remote-tracking branch 'upstream/master'
garydgregory May 5, 2026
f6f4ead
Better detection of retention bugs in tests
garydgregory May 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/**
* Tests {@link AppendableJoiner}.
*/
class AppendableJoinerTest {
class AppendableJoinerTest extends AbstractLangTest {

static class Fixture {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;

class ArrayUtilsGetDimensions {
class ArrayUtilsGetDimensionsTest extends AbstractLangTest {

// Tests cyclic references
static class Node {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Tests {@link BitField} constructed with long masks.
*/
class BitFieldLongTest {
class BitFieldLongTest extends AbstractLangTest {

private static final BitField BF_MULTI = new BitField(0x3F80L);
private static final BitField BF_MULTI_L = new BitField(0x3F80_0000_0000_0000L);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* Tests {@link CachedRandomBits}.
*/
class CachedRandomBitsTest {
class CachedRandomBitsTest extends AbstractLangTest {

/** MockRandom mocks a Random class nextBytes to use a specific list of outputs */
private static class MockRandom extends Random {
Expand Down
Binary file modified src/test/java/org/apache/commons/lang3/ClassUtilsOssFuzzTest.java
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class $trange {
/**
* Tests {@link ClassUtils#getShortClassName(Class)} for <a href="https://issues.apache.org/jira/browse/LANG-1818">LANG-1818</a>
*/
public class ClassUtilsShortClassNameTest {
public class ClassUtilsShortClassNameTest extends AbstractLangTest {

class $Inner {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* Tests {@link RuntimeEnvironment}.
*/
class RuntimeEnvironmentTest {
class RuntimeEnvironmentTest extends AbstractLangTest {

private static final String simpleEnviron = "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\u0000" +
"HOSTNAME=d62718b69f37\u0000TERM=xterm\u0000HOME=/root\u0000";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* Tests {@link StringUtils#abbreviate(String, int)} and friends.
*/
class StringUtilsAbbreviateTest {
class StringUtilsAbbreviateTest extends AbstractLangTest {

private void assertAbbreviateWithAbbrevMarkerAndOffset(final String expected, final String abbrevMarker, final int offset, final int maxWidth) {
final String abcdefghijklmno = "abcdefghijklmno";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@OutputTimeUnit(TimeUnit.NANOSECONDS)
@State(Scope.Thread)
@Warmup(iterations = 5, time = 10)
public class StringUtilsIsMixedCaseTest {
public class StringUtilsIsMixedCaseTest extends AbstractLangTest {

public static final String LOWER_CASE_LETTERS = "abcdefghijklmnopqrstuvwxyz";
public static final String END_MATCH = "at the enD";
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/apache/commons/lang3/StringsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/**
* Tests {@link Strings}.
*/
class StringsTest {
class StringsTest extends AbstractLangTest {

public static Stream<Strings> stringsFactory() {
return Stream.of(Strings.CS, Strings.CI);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
@SetSystemProperties({
@SetSystemProperty(key = SystemPropertiesTest.KEY_SPACE_1, value = "value1"),
@SetSystemProperty(key = SystemPropertiesTest.KEY_TAB_1, value = "value2") })
class SystemPropertiesTest {
class SystemPropertiesTest extends AbstractLangTest {

private static final String SIMPLE_NAME = SystemPropertiesTest.class.getSimpleName();
static final String KEY_SPACE_1 = " ";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

import org.apache.commons.lang3.AbstractLangTest;
import org.apache.commons.lang3.arch.Processor.Arch;
import org.apache.commons.lang3.arch.Processor.Type;
import org.junit.jupiter.api.Test;

class ProcessorTest {
class ProcessorTest extends AbstractLangTest {

@Test
void testIs32Bit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
import static org.apache.commons.lang3.LangAssertions.assertNullPointerException;
import static org.junit.jupiter.api.Assertions.assertEquals;

import org.apache.commons.lang3.AbstractLangTest;
import org.apache.commons.lang3.Conversion;
import org.junit.jupiter.api.Test;

class ConversionTest {
class ConversionTest extends AbstractLangTest {

@Test
void testHexToByte() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;

import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test;

/**
* Tests {@link IDKey}.
*/
class IDKeyTest {
class IDKeyTest extends AbstractLangTest {

@Test
void testEquals() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@

package org.apache.commons.lang3.builder;

import org.apache.commons.lang3.AbstractLangTest;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;

/**
* Builds classes dynamically for tests.
*/
public class TestClassBuilder {
public class TestClassBuilder extends AbstractLangTest {

/**
* Extends {@link ClassLoader} to make {@link ClassLoader#defineClass(String, byte[])} public.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;

import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test;

/**
* Tests {@link ConcurrentException}.
*/
class ConcurrentExceptionTest {
class ConcurrentExceptionTest extends AbstractLangTest {

/**
* Tests creating a ConcurrentException with an error as cause.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@

import static org.apache.commons.lang3.LangAssertions.assertIllegalArgumentException;

import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test;

/**
* Tests {@link ConcurrentRuntimeException}.
*/
class ConcurrentRuntimeExceptionTest {
class ConcurrentRuntimeExceptionTest extends AbstractLangTest {

/**
* Tries to create a ConcurrentRuntimeException with an error as cause.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test;

/**
* Tests {@link ByteSupplier}.
*/
class ByteSupplierTest {
class ByteSupplierTest extends AbstractLangTest {

@Test
void testGetAsByte() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@

import static org.junit.jupiter.api.Assertions.assertNull;

import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test;

/**
* Tests {@link FailableSupplier}.
*/
class FailableSupplierTest {
class FailableSupplierTest extends AbstractLangTest {

@Test
void testNULL() throws Throwable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Function;

import org.apache.commons.lang3.AbstractLangTest;
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.Test;

/**
* Tests {@link Functions}.
*/
class FunctionsTest {
class FunctionsTest extends AbstractLangTest {

/**
* Tests {@link Functions#apply(Function, Object)}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@

import java.util.function.Predicate;

import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test;

/**
* Tests {@link Predicates}.
*/
class PredicatesTest {
class PredicatesTest extends AbstractLangTest {

@Test
void testFalsePredicate() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;

import org.apache.commons.lang3.AbstractLangTest;
import org.apache.commons.lang3.stream.Streams.FailableStream;
import org.junit.jupiter.api.Test;

/**
* Tests {@link FailableStream}.
*/
class FailableStreamTest {
class FailableStreamTest extends AbstractLangTest {

private Integer failable(final Map.Entry<String, AtomicInteger> value) throws IOException {
if (value == new Object()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@
import java.util.stream.Collector;
import java.util.stream.Stream;

import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test;

/**
* Tests {@link LangCollectors}
*/
class LangCollectorsTest {
class LangCollectorsTest extends AbstractLangTest {

private static final class Fixture {
int value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@

import java.util.TimeZone;

import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test;

/**
* Tests {@link TimeZones}.
*/
class TimeZonesTest {
class TimeZonesTest extends AbstractLangTest {

static final String TIME_ZONE_GET_AVAILABLE_IDS = "java.util.TimeZone#getAvailableIDs()";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.util.StringTokenizer;
import java.util.stream.Collectors;

import org.apache.commons.lang3.AbstractLangTest;
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
Expand All @@ -37,7 +38,7 @@
/**
* Tests {@link IterableStringTokenizer}.
*/
class IterableStringTokenizerTest {
class IterableStringTokenizerTest extends AbstractLangTest {

/**
* Delimiters from {@link StringTokenizer}.
Expand Down
Loading