}
}
assertTrue("No WSDL files found", wsdlFile != null);
WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
WSDLDefinitions wsdl;
try
{
wsdl = factory.parse(wsdlFile.toURL());
}
catch (MalformedURLException e)
{
throw new JBWS1190Exception("Error readin WSDL", e);
}
WSDLService[] services = wsdl.getServices();
assertEquals("No of services", 1, services.length);
WSDLEndpoint[] endpoints = services[0].getEndpoints();
assertEquals("No of endpoints", 1, endpoints.length);