Package org.springframework.shell

Examples of org.springframework.shell.Bootstrap


public class CommandLineInjectedTest {

  @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 {
View Full Code Here

TOP

Related Classes of org.springframework.shell.Bootstrap

Copyright © 2018 www.massapicom. 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.