org.apache.felix.ipojo.junit4osgi.command
Class JunitCommand

java.lang.Object
  extended by org.apache.felix.ipojo.junit4osgi.command.JunitCommand
All Implemented Interfaces:
Command

public class JunitCommand
extends Object
implements Command

Felix shell command. Allow to run tests.

Author:
Felix Project Team

Constructor Summary
JunitCommand()
           
 
Method Summary
 void execute(String line, PrintStream out, PrintStream err)
          Executes the command.
 String getName()
          Gets the command name.
 String getShortDescription()
          Gets a small description of the command.
 String getUsage()
          Gets command usage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JunitCommand

public JunitCommand()
Method Detail

execute

public void execute(String line,
                    PrintStream out,
                    PrintStream err)
Executes the command.

Specified by:
execute in interface Command
Parameters:
line - the command line
out - the output stream
err - the error stream
See Also:
Command.execute(java.lang.String, java.io.PrintStream, java.io.PrintStream)

getName

public String getName()
Gets the command name.

Specified by:
getName in interface Command
Returns:
"junit"
See Also:
Command.getName()

getShortDescription

public String getShortDescription()
Gets a small description of the command.

Specified by:
getShortDescription in interface Command
Returns:
"launch junit tests"
See Also:
Command.getShortDescription()

getUsage

public String getUsage()
Gets command usage.

Specified by:
getUsage in interface Command
Returns:
the command usage.
See Also:
Command.getUsage()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.