Skip to content

Commit f6af623

Browse files
committed
Ignore tests purposely left empty test bodies. Thanks to GitHub user august782. This also closes apache#5 from GitHub.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1749393 13f79535-47bb-0310-9956-ffa450edef68
1 parent 672ba92 commit f6af623

3 files changed

Lines changed: 60 additions & 108 deletions

File tree

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

Lines changed: 26 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
package org.apache.commons.cli;
1919

2020
import org.junit.Before;
21+
import org.junit.Ignore;
22+
import org.junit.Test;
2123

2224
@SuppressWarnings("deprecation") // tests some deprecated classes
2325
public class BasicParserTest extends ParserTestCase
@@ -29,147 +31,123 @@ public void setUp()
2931
parser = new BasicParser();
3032
}
3133

32-
@Override
34+
@Override @Test @Ignore("not supported by the BasicParser")
3335
public void testDoubleDash2() throws Exception
3436
{
35-
// not supported by the BasicParser
3637
}
3738

38-
@Override
39+
@Override @Test @Ignore("not supported by the BasicParser")
3940
public void testLongWithoutEqualSingleDash() throws Exception
4041
{
41-
// not supported by the BasicParser
4242
}
4343

44-
@Override
44+
@Override @Test @Ignore("not supported by the BasicParser")
4545
public void testAmbiguousLongWithoutEqualSingleDash() throws Exception
4646
{
47-
// not supported by the basicParser
4847
}
4948

50-
@Override
49+
@Override @Test @Ignore("not supported by the BasicParser (CLI-184)")
5150
public void testNegativeOption() throws Exception
5251
{
53-
// not supported by the BasicParser (CLI-184)
5452
}
5553

56-
@Override
54+
@Override @Test @Ignore("not supported by the BasicParser")
5755
public void testPropertiesOption1() throws Exception
5856
{
59-
// not supported by the BasicParser
6057
}
6158

62-
@Override
59+
@Override @Test @Ignore("not supported by the BasicParser")
6360
public void testPropertiesOption2() throws Exception
6461
{
65-
// not supported by the BasicParser
6662
}
6763

68-
@Override
64+
@Override @Test @Ignore("not supported by the BasicParser")
6965
public void testShortWithEqual() throws Exception
7066
{
71-
// not supported by the BasicParser
7267
}
7368

74-
@Override
69+
@Override @Test @Ignore("not supported by the BasicParser")
7570
public void testShortWithoutEqual() throws Exception
7671
{
77-
// not supported by the BasicParser
7872
}
7973

80-
@Override
74+
@Override @Test @Ignore("not supported by the BasicParser")
8175
public void testLongWithEqualDoubleDash() throws Exception
8276
{
83-
// not supported by the BasicParser
8477
}
8578

86-
@Override
79+
@Override @Test @Ignore("not supported by the BasicParser")
8780
public void testLongWithEqualSingleDash() throws Exception
8881
{
89-
// not supported by the BasicParser
9082
}
9183

92-
@Override
84+
@Override @Test @Ignore("not supported by the BasicParser")
9385
public void testUnambiguousPartialLongOption1() throws Exception
9486
{
95-
// not supported by the BasicParser
9687
}
9788

98-
@Override
89+
@Override @Test @Ignore("not supported by the BasicParser")
9990
public void testUnambiguousPartialLongOption2() throws Exception
10091
{
101-
// not supported by the BasicParser
10292
}
10393

104-
@Override
94+
@Override @Test @Ignore("not supported by the BasicParser")
10595
public void testUnambiguousPartialLongOption3() throws Exception
10696
{
107-
// not supported by the BasicParser
10897
}
10998

110-
@Override
99+
@Override @Test @Ignore("not supported by the BasicParser")
111100
public void testUnambiguousPartialLongOption4() throws Exception
112101
{
113-
// not supported by the BasicParser
114102
}
115103

116-
@Override
104+
@Override @Test @Ignore("not supported by the BasicParser")
117105
public void testAmbiguousPartialLongOption1() throws Exception
118106
{
119-
// not supported by the BasicParser
120107
}
121108

122-
@Override
109+
@Override @Test @Ignore("not supported by the BasicParser")
123110
public void testAmbiguousPartialLongOption2() throws Exception
124111
{
125-
// not supported by the BasicParser
126112
}
127113

128-
@Override
114+
@Override @Test @Ignore("not supported by the BasicParser")
129115
public void testAmbiguousPartialLongOption3() throws Exception
130116
{
131-
// not supported by the BasicParser
132117
}
133118

134-
@Override
119+
@Override @Test @Ignore("not supported by the BasicParser")
135120
public void testAmbiguousPartialLongOption4() throws Exception
136121
{
137-
// not supported by the BasicParser
138122
}
139123

140-
@Override
124+
@Override @Test @Ignore("not supported by the BasicParser")
141125
public void testPartialLongOptionSingleDash() throws Exception
142126
{
143-
// not supported by the BasicParser
144127
}
145128

146-
@Override
129+
@Override @Test @Ignore("not supported by the BasicParser")
147130
public void testBursting() throws Exception
148131
{
149-
// not supported by the BasicParser
150132
}
151133

152-
@Override
134+
@Override @Test @Ignore("not supported by the BasicParser")
153135
public void testUnrecognizedOptionWithBursting() throws Exception
154136
{
155-
// not supported by the BasicParser
156137
}
157138

158-
@Override
139+
@Override @Test @Ignore("not supported by the BasicParser")
159140
public void testMissingArgWithBursting() throws Exception
160141
{
161-
// not supported by the BasicParser
162142
}
163143

164-
@Override
144+
@Override @Test @Ignore("not supported by the BasicParser")
165145
public void testStopBursting() throws Exception
166146
{
167-
// not supported by the BasicParser
168147
}
169148

170-
@Override
149+
@Override @Test @Ignore("not supported by the BasicParser")
171150
public void testStopBursting2() throws Exception
172151
{
173-
// not supported by the BasicParser
174152
}
175153
}

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

Lines changed: 23 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
package org.apache.commons.cli;
1919

2020
import org.junit.Before;
21+
import org.junit.Ignore;
22+
import org.junit.Test;
2123

2224
@SuppressWarnings("deprecation") // tests some deprecated classes
2325
public class GnuParserTest extends ParserTestCase
@@ -29,129 +31,108 @@ public void setUp()
2931
parser = new GnuParser();
3032
}
3133

32-
@Override
34+
@Override @Test @Ignore("not supported by the GnuParser")
3335
public void testDoubleDash2() throws Exception
3436
{
35-
// not supported by the GnuParser
3637
}
3738

38-
@Override
39+
@Override @Test @Ignore("not supported by the GnuParser")
3940
public void testLongWithoutEqualSingleDash() throws Exception
4041
{
41-
// not supported by the GnuParser
4242
}
4343

44-
@Override
44+
@Override @Test @Ignore("not supported by the GnuParser")
4545
public void testAmbiguousLongWithoutEqualSingleDash() throws Exception
4646
{
47-
// not supported by the GnuParser
4847
}
4948

50-
@Override
49+
@Override @Test @Ignore("not supported by the GnuParser (CLI-184)")
5150
public void testNegativeOption() throws Exception
5251
{
53-
// not supported by the GnuParser (CLI-184)
5452
}
5553

56-
@Override
54+
@Override @Test @Ignore("not supported by the GnuParser")
5755
public void testLongWithUnexpectedArgument1() throws Exception
5856
{
59-
// not supported by the GnuParser
6057
}
6158

62-
@Override
59+
@Override @Test @Ignore("not supported by the GnuParser")
6360
public void testLongWithUnexpectedArgument2() throws Exception
6461
{
65-
// not supported by the GnuParser
6662
}
6763

68-
@Override
64+
@Override @Test @Ignore("not supported by the GnuParser")
6965
public void testShortWithUnexpectedArgument() throws Exception
7066
{
71-
// not supported by the GnuParser
7267
}
7368

74-
@Override
69+
@Override @Test @Ignore("not supported by the GnuParser")
7570
public void testUnambiguousPartialLongOption1() throws Exception
7671
{
77-
// not supported by the GnuParser
7872
}
7973

80-
@Override
74+
@Override @Test @Ignore("not supported by the GnuParser")
8175
public void testUnambiguousPartialLongOption2() throws Exception
8276
{
83-
// not supported by the GnuParser
8477
}
8578

86-
@Override
79+
@Override @Test @Ignore("not supported by the GnuParser")
8780
public void testUnambiguousPartialLongOption3() throws Exception
8881
{
89-
// not supported by the GnuParser
9082
}
9183

92-
@Override
84+
@Override @Test @Ignore("not supported by the GnuParser")
9385
public void testUnambiguousPartialLongOption4() throws Exception
9486
{
95-
// not supported by the GnuParser
9687
}
9788

98-
@Override
89+
@Override @Test @Ignore("not supported by the GnuParser")
9990
public void testAmbiguousPartialLongOption1() throws Exception
10091
{
101-
// not supported by the GnuParser
10292
}
10393

104-
@Override
94+
@Override @Test @Ignore("not supported by the GnuParser")
10595
public void testAmbiguousPartialLongOption2() throws Exception
10696
{
107-
// not supported by the GnuParser
10897
}
10998

110-
@Override
99+
@Override @Test @Ignore("not supported by the GnuParser")
111100
public void testAmbiguousPartialLongOption3() throws Exception
112101
{
113-
// not supported by the GnuParser
114102
}
115103

116-
@Override
104+
@Override @Test @Ignore("not supported by the GnuParser")
117105
public void testAmbiguousPartialLongOption4() throws Exception
118106
{
119-
// not supported by the GnuParser
120107
}
121108

122-
@Override
109+
@Override @Test @Ignore("not supported by the GnuParser")
123110
public void testPartialLongOptionSingleDash() throws Exception
124111
{
125-
// not supported by the GnuParser
126112
}
127113

128-
@Override
114+
@Override @Test @Ignore("not supported by the GnuParser")
129115
public void testBursting() throws Exception
130116
{
131-
// not supported by the GnuParser
132117
}
133118

134-
@Override
119+
@Override @Test @Ignore("not supported by the GnuParser")
135120
public void testUnrecognizedOptionWithBursting() throws Exception
136121
{
137-
// not supported by the GnuParser
138122
}
139123

140-
@Override
124+
@Override @Test @Ignore("not supported by the GnuParser")
141125
public void testMissingArgWithBursting() throws Exception
142126
{
143-
// not supported by the GnuParser
144127
}
145128

146-
@Override
129+
@Override @Test @Ignore("not supported by the GnuParser")
147130
public void testStopBursting() throws Exception
148131
{
149-
// not supported by the GnuParser
150132
}
151133

152-
@Override
134+
@Override @Test @Ignore("not supported by the GnuParser")
153135
public void testStopBursting2() throws Exception
154136
{
155-
// not supported by the GnuParser
156137
}
157138
}

0 commit comments

Comments
 (0)