@Test public void testCreateSwitchyardDescriptorLoanApproval() { SwitchyardBPELGenerator gen=new SwitchyardBPELGenerator(); try { java.io.InputStream is=ClassLoader.getSystemClassLoader().getResourceAsStream("descriptors/loan_approval/deploy.xml"); byte[] b=new byte[is.available()]; is.read(b); is.close(); org.w3c.dom.Element descriptor=(org.w3c.dom.Element)XMLUtils.getNode(new String(b)); javax.wsdl.xml.WSDLReader reader=javax.wsdl.factory.WSDLFactory.newInstance().newWSDLReader(); java.util.Map<String,javax.wsdl.Definition> wsdls= new java.util.HashMap<String,javax.wsdl.Definition>(); java.net.URL url=ClassLoader.getSystemClassLoader().getResource("descriptors/loan_approval/loanServicePT.wsdl"); javax.wsdl.Definition loanServicePT=reader.readWSDL(url.getFile()); wsdls.put("loanServicePT.wsdl", loanServicePT); url = ClassLoader.getSystemClassLoader().getResource("descriptors/loan_approval/riskAssessmentPT.wsdl"); javax.wsdl.Definition riskAssessmentPT=reader.readWSDL(url.getFile()); wsdls.put("riskAssessmentPT.wsdl", riskAssessmentPT); org.w3c.dom.Element elem=gen.createSwitchyardDescriptor("loanapproval", descriptor, wsdls); compare("expected/loan_approval/switchyard.xml", XMLUtils.toText(elem)); } catch(Exception e) { e.printStackTrace(); fail("Failed to create switchyard descriptor: "+e); } }
public org.w3c.dom.Element createSwitchyardDescriptor(String name, org.w3c.dom.Element descriptor, java.util.Map<String,javax.wsdl.Definition> wsdls) throws Exception { return (createSwitchyardDescriptor(name, descriptor, null, wsdls)); }
SwitchyardBPELGenerator { public org.w3c.dom.Element createSwitchyardDescriptor(String name, org.w3c.dom.Element descriptor, java.util.Map<String,javax.wsdl.Definition> wsdls) throws Exception { return (createSwitchyardDescriptor(name, descriptor, null, wsdls)); } }
SwitchyardBPELGenerator { public org.w3c.dom.Element createSwitchyardDescriptor(String name, org.w3c.dom.Element descriptor, java.util.Map<String,javax.wsdl.Definition> wsdls) throws Exception { return (createSwitchyardDescriptor(name, descriptor, null, wsdls)); } SwitchyardBPELGenerator(); }
SwitchyardBPELGenerator { public org.w3c.dom.Element createSwitchyardDescriptor(String name, org.w3c.dom.Element descriptor, java.util.Map<String,javax.wsdl.Definition> wsdls) throws Exception { return (createSwitchyardDescriptor(name, descriptor, null, wsdls)); } SwitchyardBPELGenerator(); org.w3c.dom.Element createSwitchyardDescriptor(String name,
			org.w3c.dom.Element descriptor,
			java.util.Map<String,javax.wsdl.Definition> wsdls); org.w3c.dom.Element createSwitchyardDescriptor(String name,
			org.w3c.dom.Element descriptor, javax.wsdl.Definition serviceWsdl,
			java.util.Map<String,javax.wsdl.Definition> wsdls); }
SwitchyardBPELGenerator { public org.w3c.dom.Element createSwitchyardDescriptor(String name, org.w3c.dom.Element descriptor, java.util.Map<String,javax.wsdl.Definition> wsdls) throws Exception { return (createSwitchyardDescriptor(name, descriptor, null, wsdls)); } SwitchyardBPELGenerator(); org.w3c.dom.Element createSwitchyardDescriptor(String name,
			org.w3c.dom.Element descriptor,
			java.util.Map<String,javax.wsdl.Definition> wsdls); org.w3c.dom.Element createSwitchyardDescriptor(String name,
			org.w3c.dom.Element descriptor, javax.wsdl.Definition serviceWsdl,
			java.util.Map<String,javax.wsdl.Definition> wsdls);  }