/** * jboss-esb.xml is the esb configuration file. Test adapter. * * @throws Exception if generation fails */ public void testAdapter() throws Exception { getParameters().put("generationTarget", "adapter"); CixsJbossEsbService esbService = Samples.getLsfileaeService(); setJbmTransport(esbService.getName()); File serviceConfFilesDir = new File(new File(GEN_CONF_DIR, "META-INF"), esbService.getName()); CodeGenUtil.checkDirectory(serviceConfFilesDir, true); AbstractCixsJbossEsbGenerator.generateConfigurationXml( esbService, getParameters(), serviceConfFilesDir); check("jboss-esb.xml", serviceConfFilesDir); }
/** * jboss-esb.xml is the esb configuration file. Test Proxy over HTTP with TOMCAT provider. * * @throws Exception if generation fails */ public void testProxyHttpTomcat() throws Exception { getParameters().put("generationTarget", "proxy"); setTomcatTransport(); setPojoParameters(); CixsJbossEsbService esbService = Samples.getJvmQueryService(); File serviceConfFilesDir = new File(new File(GEN_CONF_DIR, "META-INF"), esbService.getName()); CodeGenUtil.checkDirectory(serviceConfFilesDir, true); AbstractCixsJbossEsbGenerator.generateConfigurationXml( esbService, getParameters(), serviceConfFilesDir); check("jboss-esb.xml", serviceConfFilesDir); }