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   * Test case for the PosixParser.
26   *
27   * TODO Needs a rework using JUnit parameterized tests.
28   */
29  public class PosixParserTest extends AbstractParserTestCase {
30      @Override
31      @SuppressWarnings("deprecation")
32      @BeforeEach
33      public void setUp() {
34          super.setUp();
35          parser = new PosixParser();
36      }
37  
38      @Override
39      @Test
40      @Disabled("not supported by the PosixParser")
41      public void testAmbiguousLongWithoutEqualSingleDash() throws Exception {
42      }
43  
44      @Override
45      @Test
46      @Disabled("not supported by the PosixParser")
47      public void testAmbiguousLongWithoutEqualSingleDash2() throws Exception {
48      }
49  
50      @Override
51      @Test
52      @Disabled("not supported by the PosixParser")
53      public void testAmbiguousPartialLongOption4() throws Exception {
54      }
55  
56      @Override
57      @Test
58      @Disabled("not supported by the PosixParser")
59      public void testDoubleDash2() throws Exception {
60      }
61  
62      @Override
63      @Test
64      @Disabled("not supported by the PosixParser")
65      public void testLongWithEqualSingleDash() throws Exception {
66      }
67  
68      @Override
69      @Test
70      @Disabled("not supported by the PosixParser")
71      public void testLongWithoutEqualSingleDash() throws Exception {
72      }
73  
74      @Override
75      @Test
76      @Disabled("not supported by the PosixParser")
77      public void testLongWithUnexpectedArgument1() throws Exception {
78      }
79  
80      @Override
81      @Test
82      @Disabled("not supported by the PosixParser (CLI-184)")
83      public void testNegativeOption() throws Exception {
84      }
85  
86      @Override
87      @Test
88      @Disabled("not supported by the PosixParser")
89      public void testShortWithEqual() throws Exception {
90      }
91  
92      @Override
93      @Test
94      @Disabled("not supported by the PosixParser")
95      public void testUnambiguousPartialLongOption4() throws Exception {
96      }
97  }