Assert.assertEquals(wsdlDir + "/child.wsdl", url.toExternalForm());
}
@Test
public void testResolveInParentDir2() throws URISyntaxException {
WSDLLocatorImpl wsdlLocatorImpl = new WSDLLocatorImpl(null);
URL wsdlFile = ClassUtil.getResource("wsdl/HelloWorld.wsdl", this.getClass());
if (wsdlFile==null) Assert.fail("Can not find HelloWorld.wsdl file");
String wsdlFileStr = wsdlFile.toExternalForm();
String wsdlDir = wsdlFileStr.substring(0,wsdlFileStr.lastIndexOf("/"));
wsdlDir = wsdlDir.substring(0, wsdlDir.lastIndexOf("/"));
wsdlDir = wsdlDir.substring(0, wsdlDir.lastIndexOf("/"));
URL url = wsdlLocatorImpl.constructImportUrl(wsdlFileStr, "../../child.wsdl");
Assert.assertEquals(wsdlDir + "/child.wsdl", url.toExternalForm());
}