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