@Test public void testLogInit() throws Exception { Set<String> testSet = new HashSet<String>(); testSet.add("default"); assertTrue(logManager.getLoggerNames().equals(testSet)); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "--add", "test-logger"}); testSet.add("test-logger"); assertTrue(logManager.getLoggerNames().equals(testSet)); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "--init"}); testSet.clear(); testSet.add("default"); assertTrue(logManager.getLoggerNames().equals(testSet)); }
@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);  }