DescribeProjectCommand extends AbstractCommand { public DescribeProjectCommand( String projectName, boolean extended, String cmd, ExecutionContext ctx) { super(cmd, ctx); this.projectName = projectName; this.extended = extended; } DescribeProjectCommand(
      String projectName, boolean extended, String cmd, ExecutionContext ctx); static void printUsage(PrintStream stream); static AbstractCommand parse(String cmd, ExecutionContext ctx); @Override void run(); static final String[] HELP_TAGS; }
@Test public void testDescribeProjectCommand() throws ODPSConsoleException, OdpsException { ExecutionContext context = ExecutionContext.init(); Odps odps = OdpsConnectionFactory.createOdps(context); AbstractCommand command = DescribeProjectCommand.parse("Desc project " + odps.getDefaultProject(), context); assertTrue(command instanceof DescribeProjectCommand); command.execute(); }