}
public void testImportWadl() throws Exception
{
WsdlProject project = new WsdlProject();
RestService service = ( RestService )project.addNewInterface( "Test", RestServiceFactory.REST_TYPE );
new WadlImporter( service ).initFromWadl( new File( "src" + File.separatorChar + "test-resources"
+ File.separatorChar + "wadl" + File.separatorChar + "YahooSearch.wadl" ).toURI().toURL().toString() );
assertEquals( 1, service.getOperationCount() );
assertEquals( "/NewsSearchService/V1/", service.getBasePath() );
RestResource resource = service.getOperationAt( 0 );
assertEquals( 1, resource.getPropertyCount() );
assertEquals( "appid", resource.getPropertyAt( 0 ).getName() );
assertNotNull( resource.getProperty( "appid" ) );
assertEquals( 1, resource.getRequestCount() );