Package org.springframework.xd.dirt.test.process

Examples of org.springframework.xd.dirt.test.process.SingleNodeProcessingChain.destroy()


    chain.sendPayload("a");
    result = (String) chain.receivePayload(RECEIVE_TIMEOUT);
    assertNull(result);

    chain.destroy();
  }

  /**
   * Test a processing chain that provides a source. Verify the result.
   */
 
View Full Code Here


    chain.sendPayload("hello");
    String result = (String) chain.receivePayload(RECEIVE_TIMEOUT);
    assertEquals(prefix + "hello" + suffix, result);

    chain.destroy();
  }

  @Test
  public void testPrefixOnly() {
    String prefix = "foo";
View Full Code Here

    chain.sendPayload("hello");
    String result = (String) chain.receivePayload(RECEIVE_TIMEOUT);
    assertEquals(prefix + "hello", result);

    chain.destroy();
  }

  @Test(expected = ModuleConfigurationException.class)
  public void testPrefixAndSuffixCannotBeTheSame() throws Exception {
    String prefix = "foo";
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.