Suppress deprecated warnings for test code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1533515 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c3116fcd11
commit
f040de2153
|
@ -39,6 +39,7 @@ import org.junit.Test;
|
|||
*
|
||||
* @version $Id$
|
||||
*/
|
||||
@SuppressWarnings("deprecation") // deliberate use of deprecated code
|
||||
public class ArrayUtilsTest {
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
@ -1243,7 +1244,7 @@ public class ArrayUtilsTest {
|
|||
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test
|
||||
public void testSubarrayFloat() {
|
||||
final float[] nullArray = null;
|
||||
final float[] array = { 10, 11, 12, 13, 14, 15 };
|
||||
|
|
|
@ -45,6 +45,7 @@ import org.junit.Test;
|
|||
*
|
||||
* @version $Id$
|
||||
*/
|
||||
@SuppressWarnings("deprecation") // deliberate use of deprecated code
|
||||
public class ObjectUtilsTest {
|
||||
private static final String FOO = "foo";
|
||||
private static final String BAR = "bar";
|
||||
|
|
|
@ -44,6 +44,7 @@ import org.junit.Test;
|
|||
*
|
||||
* @version $Id$
|
||||
*/
|
||||
@SuppressWarnings("deprecation") // deliberate use of deprecated code
|
||||
public class StringUtilsTest {
|
||||
|
||||
static final String WHITESPACE;
|
||||
|
@ -1304,7 +1305,6 @@ public class StringUtilsTest {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation") // intentional test of deprecated method
|
||||
@Test
|
||||
public void testChomp() {
|
||||
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
package org.apache.commons.lang3.text;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
@ -31,6 +33,7 @@ import org.apache.commons.lang3.ObjectUtils;
|
|||
* Unit test for Tokenizer.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("deprecation") // deliberate use of deprecated code
|
||||
public class StrTokenizerTest {
|
||||
|
||||
private static final String CSV_SIMPLE_FIXTURE = "A,b,c";
|
||||
|
|
Loading…
Reference in New Issue