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:
Sebastian Bazley 2013-10-18 15:36:22 +00:00
parent c3116fcd11
commit f040de2153
4 changed files with 7 additions and 2 deletions

View File

@ -39,6 +39,7 @@ import org.junit.Test;
*
* @version $Id$
*/
@SuppressWarnings("deprecation") // deliberate use of deprecated code
public class ArrayUtilsTest {
//-----------------------------------------------------------------------

View File

@ -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";

View File

@ -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() {

View File

@ -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";