Package org.jboss.soa.bpel.tests.tutorials.BluePrint2

Source Code of org.jboss.soa.bpel.tests.tutorials.BluePrint2.BluePrint2TestCase

package org.jboss.soa.bpel.tests.tutorials.BluePrint2;

import junit.framework.Test;

import org.jboss.soa.bpel.tests.RiftSawTest;
import org.jboss.soa.bpel.tests.RiftSawTestSetup;

public class BluePrint2TestCase extends RiftSawTest {

  private static final String TEST_NAME = "BluePrint2";

  public BluePrint2TestCase() {
    super(TEST_NAME);
  }

  protected void setUp() throws Exception {
    super.setUp();
  }

  protected void tearDown() throws Exception {
    super.tearDown();
  }
 
  public static Test suite() {
    return(new RiftSawTestSetup(BluePrint2TestCase.class,
            TEST_NAME, "BluePrint2-1.jar"));
  }

  public void testSendValid() throws Exception {
    String result=sendSOAPMessage("valid.xml",
          "http://localhost:8080/BPEL_BluePrint2_PurchaseOrderService");
   
    result = processResult(result);
   
    assertMessageFromFile(result, "valid_response.xml");
  }

  public void testSendInvalid() throws Exception {
    String result=sendSOAPMessage("invalid.xml",
          "http://localhost:8080/BPEL_BluePrint2_PurchaseOrderService");
   
    result = processResult(result);
   
    assertMessageFromFile(result, "invalid_response.xml");
  }

  public void testSendTimeout() throws Exception {
    String result=sendSOAPMessage("timeout.xml",
          "http://localhost:8080/BPEL_BluePrint2_PurchaseOrderService");
   
    result = processResult(result);
   
    assertMessageFromFile(result, "timeout_response.xml");
  }

}
TOP

Related Classes of org.jboss.soa.bpel.tests.tutorials.BluePrint2.BluePrint2TestCase

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.