Package org.springframework.xd.dirt.server

Examples of org.springframework.xd.dirt.server.TestApplicationBootstrap


      System.setProperty("zk.embedded.server.port", zkEmbeddedServerPort.toString());
    }
    if (isConfigured) {
      System.setProperty("zk.client.connection.configured", "true");
    }
    this.testApplicationBootstrap = new TestApplicationBootstrap();
    this.singleNodeApplication = testApplicationBootstrap.getSingleNodeApplication();
    singleNodeApplication.run();

    this.containerContext = (AbstractApplicationContext) this.singleNodeApplication.containerContext();
    this.adminContext = (AbstractApplicationContext) this.singleNodeApplication.adminContext();
View Full Code Here


  private SingleNodeApplication singleNodeApplication;


  @Before
  public final void setUp() {
    this.testApplicationBootstrap = new TestApplicationBootstrap();
    this.singleNodeApplication = testApplicationBootstrap.getSingleNodeApplication();
    String[] args = {};
    args = addArgIfProvided(args, "transport", getTransport());
    singleNodeApplication.run(args);
View Full Code Here

  @Rule
  public ExpectedException thrown = ExpectedException.none();

  @BeforeClass
  public static void setUp() {
    application = new TestApplicationBootstrap().getSingleNodeApplication().run();
    integrationSupport = new SingleNodeIntegrationTestSupport(application);
  }
View Full Code Here

   * Set up the test using the given transport.
   *
   * @param transport the transport to be used by the test.
   */
  protected static void setUp(String transport) {
    testApplicationBootstrap = new TestApplicationBootstrap();
    singleNodeApplication = testApplicationBootstrap.getSingleNodeApplication().run("--transport", transport);
    integrationSupport = new SingleNodeIntegrationTestSupport(singleNodeApplication);
    if (transport.equalsIgnoreCase("local")) {
      testMessageBus = null;
    }
View Full Code Here

  public void cleanup() {
    System.setProperties(previousSystemProp);
  }

  private void runTestAndExpect(String expected) {
    SingleNodeApplication application = new TestApplicationBootstrap().getSingleNodeApplication().run(
        "--transport", "local");

    // Set activate profiles AFTER the container has started, so we don't
    // interfere with container profiles themselves
    if (activeProfiles != null) {
View Full Code Here

  private static SingleNodeIntegrationTestSupport integrationTestSupport;

  @BeforeClass
  public static void startXDSingleNode() throws Exception {
    application = new TestApplicationBootstrap().getSingleNodeApplication().run("--analytics", "memory");
    // Explicitly set this to true since RandomConfigurationSupport disables JMX by default.
    System.setProperty("XD_JMX_ENABLED", "true");
    adminContext = application.adminContext();
    moduleRegistry = adminContext.getBean(WriteableModuleRegistry.class);
    integrationTestSupport = new SingleNodeIntegrationTestSupport(application);
View Full Code Here

  @BeforeClass
  public static void setUp() {
    String currentDir = new File(".").getAbsolutePath();
    originalConfigLocation = System.getProperty("spring.config.location");
    System.setProperty("spring.config.location", currentDir + "/src/test/resources/extensions/extensions-test.yml");
    application = new TestApplicationBootstrap().getSingleNodeApplication().run();
    context = application.pluginContext();
  }
View Full Code Here

  @BeforeClass
  public static void setUp() {
    // Args not required. Just shown as an example.
    // Also, used to pick an unused port
    application = new TestApplicationBootstrap().getSingleNodeApplication().run("--transport", "local");
    integrationSupport = new SingleNodeIntegrationTestSupport(application);
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.dirt.server.TestApplicationBootstrap

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.