Examples of ConfigTree


Examples of net.sourceforge.cruisecontrol.gui.configuration.tree.ConfigTree

  /**
   * Create a JDOM element and initialize a PluginInfo object
   */
  protected void setUp() throws Exception {
    super.setUp();
    ConfigTree tree = ConfigTreeUtils.makeTree(
        "<cruisecontrol>" +
        "<project name='Proj1'><schedule /></project>" +
        "<project name='Proj2'><modificationset>" +
        "  <svn />" +
        "</modificationset></project>" +
        "</cruisecontrol>",
        "Proj1",
        "Proj2");
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
    ProjectNode proj = (ProjectNode) root.getChildAt(0);
    this.testNode = (BasicNode) proj.getChildAt(0);
  }
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

   * This will test the case where the text message passed to the invoke contains the full multipart
   * message. The response is also treated as complete, and returned as text.
   */
  public void testUnnamedPartText() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
    config.setAttribute(BPELInvoke.SERVICE, TEST_SERVICE);
   
    // Request message
    String reqTextMessageText="Hello World Request";
    String reqTextMessage="<"+MESSAGE+"><"+REQ_TEST_PART+"><"+TEST_MESSAGE_ELEM+">"+reqTextMessageText+
                "</"+TEST_MESSAGE_ELEM+"></"+REQ_TEST_PART+"></"+MESSAGE+">";
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

   * configured part name before invoking the process, and similarly remove the part
   * name from the response and return as DOM element.
   */
  public void testNamedPartDOMElement() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.REQUEST_PART_NAME, REQ_TEST_PART);
    config.setAttribute(BPELInvoke.RESPONSE_PART_NAME, RESP_TEST_PART);
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
    config.setAttribute(BPELInvoke.SERVICE, TEST_SERVICE);
   
    // Request message
    String reqTextMessageText="Hello World Request";
    String reqTextMessage="<"+TEST_MESSAGE_ELEM+">"+reqTextMessageText+"</"+TEST_MESSAGE_ELEM+">";
     
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

   * message, but specified using DOM element. The response equally represents the complete multipart
   * message to be returned in DOM form.
   */
  public void testUnnamedPartDOMElement() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
    config.setAttribute(BPELInvoke.SERVICE, TEST_SERVICE);
   
    // Request message
    String reqTextMessageText="Hello World Request";
    String reqTextMessage="<"+MESSAGE+"><"+REQ_TEST_PART+"><"+TEST_MESSAGE_ELEM+">"+reqTextMessageText+
                "</"+TEST_MESSAGE_ELEM+"></"+REQ_TEST_PART+"></"+MESSAGE+">";
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

  /**
   * This test checks whether a null response is handled.
   */
  public void testNamedPartRequestOnly() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.REQUEST_PART_NAME, REQ_TEST_PART);
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
    config.setAttribute(BPELInvoke.SERVICE, TEST_SERVICE);
   
    // Request message
    String reqTextMessageText="Hello World Request";
    String reqTextMessage="<"+TEST_MESSAGE_ELEM+">"+reqTextMessageText+"</"+TEST_MESSAGE_ELEM+">";
   
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

  /**
   * This test checks that missing operation causes failure.
   */
  public void testMissingOperation() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.SERVICE, TEST_SERVICE);
   
    // Request message
    String reqTextMessageText="Hello World Request";
    String reqTextMessage="<"+TEST_MESSAGE_ELEM+">"+reqTextMessageText+"</"+TEST_MESSAGE_ELEM+">";
   
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

  /**
   * This test checks that missing service causes failure.
   */
  public void testMissingService() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
   
    // Request message
    String reqTextMessageText="Hello World Request";
    String reqTextMessage="<"+TEST_MESSAGE_ELEM+">"+reqTextMessageText+"</"+TEST_MESSAGE_ELEM+">";
   
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

  /**
   * This test attempts to invoke a BPEL process using invalid XML text
   */
  public void testInvalidRequestXMLText() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
   
    // Request message
    String reqTextMessageText="Hello World Request";
    String reqTextMessage="<"+TEST_MESSAGE_ELEM+">"+reqTextMessageText+"<"+TEST_MESSAGE_ELEM+">";
   
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

   * contained in a named part of a multi-part message, so should
   * result in exception.
   */
  public void testInvalidRequestTextNoPartName() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
   
    // Request message
    String reqTextMessageText="Hello World Request";
   
    TestBPELEngine bpelEngine=null;
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

   * This test supplies the part content in text form, but gets the response part name incorrect,
   * so should get a null response.
   */
  public void testNamedPartTextWithIncorrectResponsePartName() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.REQUEST_PART_NAME, REQ_TEST_PART);
    config.setAttribute(BPELInvoke.RESPONSE_PART_NAME, RESP_TEST_PART+"XXX");
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
    config.setAttribute(BPELInvoke.SERVICE, TEST_SERVICE);
   
    // Request message
    String reqTextMessageText="Hello World Request";
    String reqTextMessage="<"+TEST_MESSAGE_ELEM+">"+reqTextMessageText+"</"+TEST_MESSAGE_ELEM+">";
     
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.