Examples of OptionsInjectedDummyCommand


Examples of org.springframework.shell.commands.test.OptionsInjectedDummyCommand

  @Test
  public void commandLineInjected() throws IOException {
    try {
      Bootstrap bootstrap = new Bootstrap(null);
      ApplicationContext ctx = bootstrap.getApplicationContext();
      OptionsInjectedDummyCommand dummyCommand = ctx.getBean(OptionsInjectedDummyCommand.class);
      Assert.assertNotNull("commandLine was not injected into a command", dummyCommand.getCommandLine());
    } catch (RuntimeException t) {
      throw t;
    } finally {
      HandlerUtils.flushAllHandlers(Logger.getLogger(""));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.