public void testDefaultCommandContext() { TestCommand testCommand = new TestCommand(); assertEquals(0, testCommand.count); CommandContext commandContext = DefaultCommandContext.instance(); commandContext.execute(testCommand); assertEquals(1, testCommand.count); }
public void testThreadLocalCommandContext_toString() throws Exception { CommandContext commandContext = new ThreadLocalExtendedCommandContext(); assertNotNull(commandContext.toString()); }
public void testDefaultCommandExecutor_toString() throws Exception { CommandContext commandContext = DefaultCommandContext.instance(); assertNotNull(commandContext.toString()); }