Last change
on this file was
319,
checked in by sherbold, 13 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
611 bytes
|
Line | |
---|
1 | package de.ugoe.cs.util.console.mock.commands;
|
---|
2 |
|
---|
3 | import java.security.InvalidParameterException;
|
---|
4 | import java.util.List;
|
---|
5 |
|
---|
6 | import de.ugoe.cs.util.console.Command;
|
---|
7 | import de.ugoe.cs.util.console.Console;
|
---|
8 |
|
---|
9 | public class CMDmockCommand implements Command {
|
---|
10 |
|
---|
11 | @Override
|
---|
12 | public void run(List<Object> parameters) {
|
---|
13 | switch (parameters.size()) {
|
---|
14 | case 0:
|
---|
15 | Console.println("mock command: run");
|
---|
16 | break;
|
---|
17 | case 1:
|
---|
18 | throw new InvalidParameterException();
|
---|
19 | default:
|
---|
20 | throw new RuntimeException();
|
---|
21 | }
|
---|
22 | }
|
---|
23 |
|
---|
24 | @Override
|
---|
25 | public void help() {
|
---|
26 | Console.println("mock command: help");
|
---|
27 | }
|
---|
28 |
|
---|
29 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.