View Javadoc
1   /*
2     Licensed to the Apache Software Foundation (ASF) under one or more
3     contributor license agreements.  See the NOTICE file distributed with
4     this work for additional information regarding copyright ownership.
5     The ASF licenses this file to You under the Apache License, Version 2.0
6     (the "License"); you may not use this file except in compliance with
7     the License.  You may obtain a copy of the License at
8   
9         http://www.apache.org/licenses/LICENSE-2.0
10  
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16   */
17  
18  package org.apache.commons.cli;
19  
20  import org.junit.jupiter.api.BeforeEach;
21  import org.junit.jupiter.api.Disabled;
22  import org.junit.jupiter.api.Test;
23  
24  /**
25   * TODO Needs a rework using JUnit parameterized tests.
26   */
27  @SuppressWarnings("deprecation") // tests some deprecated classes
28  public class GnuParserTest extends AbstractParserTestCase {
29      @Override
30      @BeforeEach
31      public void setUp() {
32          super.setUp();
33          parser = new GnuParser();
34      }
35  
36      @Override
37      @Test
38      @Disabled("not supported by the GnuParser")
39      public void testAmbiguousLongWithoutEqualSingleDash() throws Exception {
40      }
41  
42      @Override
43      @Test
44      @Disabled("not supported by the GnuParser")
45      public void testAmbiguousLongWithoutEqualSingleDash2() throws Exception {
46      }
47  
48      @Override
49      @Test
50      @Disabled("not supported by the GnuParser")
51      public void testAmbiguousPartialLongOption1() throws Exception {
52      }
53  
54      @Override
55      @Test
56      @Disabled("not supported by the GnuParser")
57      public void testAmbiguousPartialLongOption2() throws Exception {
58      }
59  
60      @Override
61      @Test
62      @Disabled("not supported by the GnuParser")
63      public void testAmbiguousPartialLongOption3() throws Exception {
64      }
65  
66      @Override
67      @Test
68      @Disabled("not supported by the GnuParser")
69      public void testAmbiguousPartialLongOption4() throws Exception {
70      }
71  
72      @Override
73      @Test
74      @Disabled("not supported by the GnuParser")
75      public void testBursting() throws Exception {
76      }
77  
78      @Override
79      @Test
80      @Disabled("not supported by the GnuParser")
81      public void testDoubleDash2() throws Exception {
82      }
83  
84      @Override
85      @Test
86      @Disabled("not supported by the GnuParser")
87      public void testLongWithoutEqualSingleDash() throws Exception {
88      }
89  
90      @Override
91      @Test
92      @Disabled("not supported by the GnuParser")
93      public void testLongWithUnexpectedArgument1() throws Exception {
94      }
95  
96      @Override
97      @Test
98      @Disabled("not supported by the GnuParser")
99      public void testLongWithUnexpectedArgument2() throws Exception {
100     }
101 
102     @Override
103     @Test
104     @Disabled("not supported by the GnuParser")
105     public void testMissingArgWithBursting() throws Exception {
106     }
107 
108     @Override
109     @Test
110     @Disabled("not supported by the GnuParser (CLI-184)")
111     public void testNegativeOption() throws Exception {
112     }
113 
114     @Override
115     @Test
116     @Disabled("not supported by the GnuParser")
117     public void testPartialLongOptionSingleDash() throws Exception {
118     }
119 
120     @Override
121     @Test
122     @Disabled("not supported by the GnuParser")
123     public void testShortWithUnexpectedArgument() throws Exception {
124     }
125 
126     @Override
127     @Test
128     @Disabled("not supported by the GnuParser")
129     public void testStopBursting() throws Exception {
130     }
131 
132     @Override
133     @Test
134     @Disabled("not supported by the GnuParser")
135     public void testStopBursting2() throws Exception {
136     }
137 
138     @Override
139     @Test
140     @Disabled("not supported by the GnuParser")
141     public void testUnambiguousPartialLongOption1() throws Exception {
142     }
143 
144     @Override
145     @Test
146     @Disabled("not supported by the GnuParser")
147     public void testUnambiguousPartialLongOption2() throws Exception {
148     }
149 
150     @Override
151     @Test
152     @Disabled("not supported by the GnuParser")
153     public void testUnambiguousPartialLongOption3() throws Exception {
154     }
155 
156     @Override
157     @Test
158     @Disabled("not supported by the GnuParser")
159     public void testUnambiguousPartialLongOption4() throws Exception {
160     }
161 
162     @Override
163     @Test
164     @Disabled("not supported by the GnuParser")
165     public void testUnrecognizedOptionWithBursting() throws Exception {
166     }
167 }