Package org.jboss.soa.esb.quickstart.test

Source Code of org.jboss.soa.esb.quickstart.test.BPMOrchestration4Test

package org.jboss.soa.esb.quickstart.test;

import java.io.File;

import junit.framework.Test;
import org.jboss.soa.esb.samples.quickstarts.bpm_orchestration4.test.SendJMSMessage;
import org.jboss.soa.esb.samples.quickstarts.bpm_orchestration4.test.SendJMSMessageStart;

public class BPMOrchestration4Test extends AbstractQuickstartTestCase {
  private static final String DEPLOY_MESSAGE = "Go Deploy It";
  private static final String START_MESSAGE = "Start It Up";
  private static final String SAMPLE_FILE = "SampleOrder.xml";
 
  public BPMOrchestration4Test(String name) {
    super(name);
  }

  public void testMessage() throws Exception {
    SendJMSMessageStart sjms = new SendJMSMessageStart();
    String location = (Helpers.getQuickstartLocation("bpm_orchestration4"));
    sjms.setupConnection();
    String fileContent = sjms.readAsciiFile(location + File.separator + SAMPLE_FILE);
        System.out.println("---------------------------------------------");
        System.out.println(fileContent);
        System.out.println("---------------------------------------------");
        sjms.sendAMessage(fileContent);
        sjms.stop();
  }

  public static Test suite() throws Exception {
    return getDeploySetup(BPMOrchestration4Test.class, "QuickstartMessageStoreServer.sar, Quickstart_bpm_orchestration4.esb");
  }
}
TOP

Related Classes of org.jboss.soa.esb.quickstart.test.BPMOrchestration4Test

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.