source: trunk/JavaHelperLibTest/src/de/ugoe/cs/util/console/mock/commands/CMDmockCommand.java

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 
1package de.ugoe.cs.util.console.mock.commands;
2
3import java.security.InvalidParameterException;
4import java.util.List;
5
6import de.ugoe.cs.util.console.Command;
7import de.ugoe.cs.util.console.Console;
8
9public 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.