This commit is contained in:
Gary Gregory 2020-08-03 09:20:46 -04:00
commit 528e4c7655
2 changed files with 11 additions and 1 deletions

View File

@ -603,7 +603,7 @@
<commons.encoding>utf-8</commons.encoding>
<checkstyle.plugin.version>3.1.1</checkstyle.plugin.version>
<checkstyle.version>8.34</checkstyle.version>
<checkstyle.version>8.35</checkstyle.version>
<checkstyle.configdir>src/site/resources/checkstyle</checkstyle.configdir>
<spotbugs.plugin.version>4.0.4</spotbugs.plugin.version>

View File

@ -45,6 +45,7 @@ import java.util.regex.PatternSyntaxException;
import org.apache.commons.lang3.mutable.MutableInt;
import org.apache.commons.lang3.text.WordUtils;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Disabled;
/**
* Unit tests for methods of {@link org.apache.commons.lang3.StringUtils}
@ -1341,6 +1342,15 @@ public class StringUtilsTest {
assertEquals("foo2", StringUtils.join(MIXED_TYPE_LIST));
}
@Disabled
@Test
public void testLang1593() {
final int[] arr = new int[] {1, 2, 3, 4, 5, 6, 7};
final String expected = StringUtils.join(arr, '-');
final String actual = StringUtils.join(arr, "-");
assertEquals(expected, actual);
}
//-----------------------------------------------------------------------
@Test
public void testJoin_Objects() {