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         https://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  class BasicParserTest extends AbstractParserTestCase {
29      @Override
30      @BeforeEach
31      public void setUp() {
32          super.setUp();
33          parser = new BasicParser();
34      }
35  
36      @Override
37      @Test
38      @Disabled("not supported by the BasicParser")
39      void testAmbiguousLongWithoutEqualSingleDash() throws Exception {
40      }
41  
42      @Override
43      @Test
44      @Disabled("not supported by the BasicParser")
45      void testAmbiguousLongWithoutEqualSingleDash2() throws Exception {
46      }
47  
48      @Override
49      @Test
50      @Disabled("not supported by the BasicParser")
51      void testAmbiguousPartialLongOption1() throws Exception {
52      }
53  
54      @Override
55      @Test
56      @Disabled("not supported by the BasicParser")
57      void testAmbiguousPartialLongOption2() throws Exception {
58      }
59  
60      @Override
61      @Test
62      @Disabled("not supported by the BasicParser")
63      void testAmbiguousPartialLongOption3() throws Exception {
64      }
65  
66      @Override
67      @Test
68      @Disabled("not supported by the BasicParser")
69      void testAmbiguousPartialLongOption4() throws Exception {
70      }
71  
72      @Override
73      @Test
74      @Disabled("not supported by the BasicParser")
75      void testBursting() throws Exception {
76      }
77  
78      @Override
79      @Test
80      @Disabled("not supported by the BasicParser")
81      void testDoubleDash2() throws Exception {
82      }
83  
84      @Override
85      @Test
86      @Disabled("not supported by the BasicParser")
87      void testLongOptionWithEqualsQuoteHandling() throws Exception {
88      }
89  
90      @Override
91      @Test
92      @Disabled("not supported by the BasicParser")
93      void testLongWithEqualDoubleDash() throws Exception {
94      }
95  
96      @Override
97      @Test
98      @Disabled("not supported by the BasicParser")
99      void testLongWithEqualSingleDash() throws Exception {
100     }
101 
102     @Override
103     @Test
104     @Disabled("not supported by the BasicParser")
105     void testLongWithoutEqualSingleDash() throws Exception {
106     }
107 
108     @Override
109     @Test
110     @Disabled("not supported by the BasicParser")
111     void testMissingArgWithBursting() throws Exception {
112     }
113 
114     @Override
115     @Test
116     @Disabled("not supported by the BasicParser (CLI-184)")
117     void testNegativeOption() throws Exception {
118     }
119 
120     @Override
121     @Test
122     @Disabled("not supported by the BasicParser")
123     void testPartialLongOptionSingleDash() throws Exception {
124     }
125 
126     @Override
127     @Test
128     @Disabled("not supported by the BasicParser")
129     void testPropertiesOption1() throws Exception {
130     }
131 
132     @Override
133     @Test
134     @Disabled("not supported by the BasicParser")
135     void testPropertiesOption2() throws Exception {
136     }
137 
138     @Override
139     @Test
140     @Disabled("not supported by the BasicParser")
141     void testShortOptionConcatenatedQuoteHandling() throws Exception {
142     }
143 
144     @Override
145     @Test
146     @Disabled("not supported by the BasicParser")
147     void testShortWithEqual() throws Exception {
148     }
149 
150     @Override
151     @Test
152     @Disabled("not supported by the BasicParser")
153     void testShortWithoutEqual() throws Exception {
154     }
155 
156     @Override
157     @Test
158     @Disabled("not supported by the BasicParser")
159     void testStopBursting() throws Exception {
160     }
161 
162     @Override
163     @Test
164     @Disabled("not supported by the BasicParser")
165     void testStopBursting2() throws Exception {
166     }
167 
168     @Override
169     @Test
170     @Disabled("not supported by the BasicParser")
171     void testUnambiguousPartialLongOption1() throws Exception {
172     }
173 
174     @Override
175     @Test
176     @Disabled("not supported by the BasicParser")
177     void testUnambiguousPartialLongOption2() throws Exception {
178     }
179 
180     @Override
181     @Test
182     @Disabled("not supported by the BasicParser")
183     void testUnambiguousPartialLongOption3() throws Exception {
184     }
185 
186     @Override
187     @Test
188     @Disabled("not supported by the BasicParser")
189     void testUnambiguousPartialLongOption4() throws Exception {
190     }
191 
192     @Override
193     @Test
194     @Disabled("not supported by the BasicParser")
195     void testUnrecognizedOptionWithBursting() throws Exception {
196     }
197 }