1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.cli2.option;
18
19 import java.util.List;
20
21 import org.apache.commons.cli2.CLITestCase;
22 import org.apache.commons.cli2.Option;
23 import org.apache.commons.cli2.OptionException;
24 import org.apache.commons.cli2.WriteableCommandLine;
25 import org.apache.commons.cli2.commandline.WriteableCommandLineImpl;
26
27
28
29
30 public abstract class OptionTestCase extends CLITestCase {
31
32 public static WriteableCommandLine commandLine(
33 final Option option,
34 final List args) {
35 return new WriteableCommandLineImpl(option, args);
36 }
37
38 public abstract void testTriggers();
39
40 public abstract void testPrefixes();
41
42 public abstract void testCanProcess();
43
44 public abstract void testProcess() throws OptionException;
45
46 public abstract void testValidate() throws OptionException;
47
48 public abstract void testAppendUsage() throws OptionException;
49
50 public abstract void testGetPreferredName();
51
52 public abstract void testGetDescription();
53
54 public abstract void testHelpLines();
55 }