/** * LSFILEAE case. * * @throws Exception if generation fails */ public void testCixs2JbossEsbTemplateLsfileae() throws Exception { CixsJbossEsbService service = Samples.getLsfileaeService(); mAntModel.setCixsJbossEsbService(service); mAntModel.setSampleConfigurationTransport(JBossESBTransport.JBM); mAntModel.getJbmTransportParameters().initialize(service.getName()); File antFilesDir = new File(GEN_ANT_DIR, service.getName()); CodeGenUtil.checkDirectory(antFilesDir, true); AbstractCixsGenerator.generateFile( "Test generator", "vlc/build-jbossesb2cixs-xml.vm", "antModel", mAntModel, getParameters(), antFilesDir, "build.xml"); check("build.xml", antFilesDir); }
/** * LSFILEAL case. Use HTTP sample client. * * @throws Exception if generation fails */ public void testCixs2JbossEsbTemplateLsfileal() throws Exception { CixsJbossEsbService service = Samples.getLsfilealService(); mAntModel.setCixsJbossEsbService(service); mAntModel.setSampleConfigurationTransport(JBossESBTransport.HTTP); mAntModel.getHttpTransportParameters().setHost("localhost"); mAntModel.getHttpTransportParameters().setPath("/legstar/services/" + service.getName()); File antFilesDir = new File(GEN_ANT_DIR, service.getName()); CodeGenUtil.checkDirectory(antFilesDir, true); AbstractCixsGenerator.generateFile( "Test generator", "vlc/build-jbossesb2cixs-xml.vm", "antModel", mAntModel, getParameters(), antFilesDir, "build.xml"); check("build.xml", antFilesDir); }