nl.toolforge.karma.core.cmd.impl
Class CommandFaker

java.lang.Object
  extended bynl.toolforge.karma.core.cmd.DefaultCommand
      extended bynl.toolforge.karma.core.cmd.impl.CommandFaker
All Implemented Interfaces:
Command

public final class CommandFaker
extends DefaultCommand

Bogus implementation of DefaultCommand. Used in testcases.

Version:
$Id: CommandFaker.java,v 1.13 2004/08/29 18:00:34 hippe Exp $
Author:
D.A. Smedes

Constructor Summary
CommandFaker(CommandDescriptor descriptor)
           
 
Method Summary
 void execute()
          Executes the command.
 CommandResponse getCommandResponse()
          Return the specific CommandResponse object that this command uses.
 
Methods inherited from class nl.toolforge.karma.core.cmd.DefaultCommand
cleanUp, deregisterCommandResponseListener, getAlias, getCommandLine, getContext, getDescription, getFrontendMessages, getHelp, getName, getResponseListener, getWorkingContext, registerCommandResponseListener, setCommandLine, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandFaker

public CommandFaker(CommandDescriptor descriptor)
             throws KarmaException
Method Detail

execute

public void execute()
             throws CommandException
Description copied from interface: Command
Executes the command.

Throws:
CommandException - When execution failed. This exception catches all underlying exceptions and rethrows them as a CommandException, except for RuntimeExceptions.

getCommandResponse

public CommandResponse getCommandResponse()
Description copied from interface: Command
Return the specific CommandResponse object that this command uses.

Returns:
CommandResponse


Copyright © 2002-2004 Toolforge. All Rights Reserved.