FileDocCategorySizeDatePackage
NYICommandTest.javaAPI DocGlassfish v2 API4212Fri May 04 22:25:18 BST 2007com.sun.enterprise.cli.commands

NYICommandTest

public class NYICommandTest extends TestCase
Execute these tests using gmake (and Ant) by: cd gmake ANT_TARGETS=CommandTest.java

Fields Summary
NYICommand
testCommand
Constructors Summary
public NYICommandTest(String name)

        super(name);
    
Methods Summary
public static voidmain(java.lang.String[] args)

        final TestRunner runner= new TestRunner();
        final TestResult result = runner.doRun(NYICommandTest.suite(), false);
        System.exit(result.errorCount() + result.failureCount());
    
private voidnyi()

        fail("Not Yet Implemented");
    
protected voidsetUp()


        
        //Properties systemProperties = new java.util.Propertis();
        //systemProperties.put("com.sun.aas.configRoot",)
        //String configProperty = SystemPropertyConstants.CONFIG_ROOT_PROPERTY;
        //System.out.println(configProperty + " = " + System.getProperty(configProperty));
        testCommand = new NYICommand();
        testCommand.setName("sampleCommand");
    
public static junit.framework.Testsuite()

        TestSuite suite = new TestSuite(NYICommandTest.class);
        return suite;
    
protected voidtearDown()

    
public voidtestrunCommand()

        try{
            testCommand.runCommand();
        }catch (CommandException ce){
            assertEquals(ce.getMessage(), "Command Not Yet Implemented");
        }