Skip to content

Commit 0cbe335

Browse files
committed
Suppress deprecation warnings for test classes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1440532 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4d49ed3 commit 0cbe335

17 files changed

Lines changed: 17 additions & 0 deletions

src/test/java/org/apache/commons/cli/ApplicationTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
*
3535
* @author John Keyes (john at integralsource.com)
3636
*/
37+
@SuppressWarnings("deprecation") // tests some deprecated classes
3738
public class ApplicationTest extends TestCase {
3839

3940
public void testLs() throws Exception {

src/test/java/org/apache/commons/cli/ArgumentIsOptionTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import junit.framework.TestCase;
2121

22+
@SuppressWarnings("deprecation") // tests some deprecated classes
2223
public class ArgumentIsOptionTest extends TestCase
2324
{
2425
private Options options = null;

src/test/java/org/apache/commons/cli/BasicParserTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* @author Emmanuel Bourg
2222
* @version $Revision$, $Date$
2323
*/
24+
@SuppressWarnings("deprecation") // tests some deprecated classes
2425
public class BasicParserTest extends ParserTestCase
2526
{
2627
@Override

src/test/java/org/apache/commons/cli/BugsTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
import junit.framework.TestCase;
2626

27+
@SuppressWarnings("deprecation") // tests some deprecated classes
2728
public class BugsTest extends TestCase
2829
{
2930
public void test11457() throws Exception

src/test/java/org/apache/commons/cli/CommandLineTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @author Emmanuel Bourg
2626
* @version $Revision$, $Date$
2727
*/
28+
@SuppressWarnings("deprecation") // tests some deprecated classes
2829
public class CommandLineTest extends TestCase
2930
{
3031
public void testGetOptionProperties() throws Exception

src/test/java/org/apache/commons/cli/GnuParserTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package org.apache.commons.cli;
1919

20+
@SuppressWarnings("deprecation") // tests some deprecated classes
2021
public class GnuParserTest extends ParserTestCase
2122
{
2223
@Override

src/test/java/org/apache/commons/cli/OptionGroupTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @author John Keyes (john at integralsource.com)
2626
* @version $Revision$
2727
*/
28+
@SuppressWarnings("deprecation") // tests some deprecated classes
2829
public class OptionGroupTest extends TestCase
2930
{
3031
private Options _options = null;

src/test/java/org/apache/commons/cli/OptionsTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* @author Rob Oxspring roxspring@apache.org
2727
* @version $Revision$
2828
*/
29+
@SuppressWarnings("deprecation") // tests some deprecated classes
2930
public class OptionsTest extends TestCase
3031
{
3132
public void testSimple()

src/test/java/org/apache/commons/cli/ParserTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ public void testUnlimitedArgs() throws Exception
871871
assertEquals("number of arg for -f", 1, cl.getOptionValues("f").length);
872872
}
873873

874+
@SuppressWarnings("deprecation")
874875
private CommandLine parse(CommandLineParser parser, Options opts, String[] args, Properties properties) throws ParseException {
875876
if (parser instanceof Parser) {
876877
return ((Parser) parser).parse(opts, args, properties);

src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*
3131
* @version $Revision$, $Date$
3232
*/
33+
@SuppressWarnings("deprecation") // tests some deprecated classes
3334
public class PatternOptionBuilderTest extends TestCase
3435
{
3536
public void testSimplePattern() throws Exception

0 commit comments

Comments
 (0)