WadlImporter { public WadlImporter(RestService service) { this.service = service; } WadlImporter(RestService service); void initFromWadl(String wadlUrl); static Map<String, XmlObject> getDefinitionParts(String wadlUrl); static String extractParams(URL param, RestParamsPropertyHolder params);  }
@Test public void testWadlImporter() throws Exception { WsdlProject project = new WsdlProject(); RestService service = (RestService) project.addNewInterface("REST Service", RestServiceFactory.REST_TYPE); WadlImporter importer = new WadlImporter(service); importer.initFromWadl(WadlImporter.class.getResource("/wadl/YahooSearch.wadl").toString()); assertEquals(service.getName(), "REST Service"); assertEquals(1, service.getResourceList().size()); assertEquals(0, service.getResourceList().get(0).getChildResourceCount()); assertEquals(1, service.getResourceList().get(0).getRestMethodCount()); }