@Test public void testLogEnableDisable() throws Exception { logManager.setActive(true); assertTrue(logManager.isActive()); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "--disable"}); assertTrue(!logManager.isActive()); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "--enable"}); assertTrue(logManager.isActive()); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "--no"}); assertTrue(!logManager.isActive()); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "--yes"}); assertTrue(logManager.isActive()); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "--off"}); assertTrue(!logManager.isActive()); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "--on"}); assertTrue(logManager.isActive()); }
@Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } LogCommand(Agent agent, SoarCommandInterpreter interpreter); }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } LogCommand(Agent agent, SoarCommandInterpreter interpreter); @Override String execute(SoarCommandContext context, String[] args); }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } LogCommand(Agent agent, SoarCommandInterpreter interpreter); @Override String execute(SoarCommandContext context, String[] args);  }