org.ourgrid.mygrid.ui.command
Class CommandManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.mygrid.ui.command.CommandManagerTest
All Implemented Interfaces:
junit.framework.Test, Command, GUITest, PreCommitTest, SelectiveTest, StressTest

public class CommandManagerTest
extends junit.framework.TestCase
implements Command, GUITest, PreCommitTest


Constructor Summary
CommandManagerTest()
           
 
Method Summary
 boolean configureEnvironment()
          Determines if this command needs to configure environment before being executed
 int run(java.lang.String[] params)
          Executes the main function of the command that implements this.
protected  void setUp()
           
protected  void tearDown()
           
 void testAddJob()
           
 void testConfig()
           
 void testExecuteCommand()
           
 void testExecuteCommandWithManyParameters()
           
 void testInvalidCommand()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

CommandManagerTest

public CommandManagerTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testExecuteCommand

public void testExecuteCommand()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testExecuteCommandWithManyParameters

public void testExecuteCommandWithManyParameters()

testInvalidCommand

public void testInvalidCommand()

testAddJob

public void testAddJob()

testConfig

public void testConfig()
                throws java.lang.Exception
Throws:
java.lang.Exception

run

public int run(java.lang.String[] params)
Description copied from interface: Command
Executes the main function of the command that implements this.

Specified by:
run in interface Command

configureEnvironment

public boolean configureEnvironment()
Description copied from interface: Command
Determines if this command needs to configure environment before being executed

Specified by:
configureEnvironment in interface Command
Returns:
true if this command needs to configure environment before. False, otherwise.