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");
}
}