1   /*
2    *  soapUI, copyright (C) 2004-2007 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
11   */
12  
13  package com.eviware.soapui.impl.wsdl;
14  
15  import com.eviware.soapui.impl.wsdl.support.wsdl.WsdlImporter;
16  import com.eviware.soapui.support.TestCaseWithJetty;
17  
18  public class WsdlProjectTestCase extends TestCaseWithJetty
19  {
20  	public void testComplexLoad() throws Exception
21  	{
22  		WsdlProject project = new WsdlProject();
23  		WsdlInterface[] wsdls = WsdlImporter.getInstance().importWsdl(project,
24  				"http://localhost:8082/test8/TestService.wsdl");
25  
26  		assertEquals(1, wsdls.length);
27  	}
28  
29  //	public void testImport() throws Exception
30  //	{
31  //		String url = "http://queue.amazonaws.com/doc/2006-04-01/QueueService.wsdl";
32  //
33  //		WsdlProject project = new WsdlProject();
34  //
35  //		// import amazon wsdl
36  //		WsdlInterface[] result = project.importWsdl(url, true);
37  //
38  //		assertEquals(2, result.length);
39  //	}
40  	/*
41  	public void testImport2() throws Exception
42  	{
43  		String url = "file:forumwsdl/invoke.wsdl";
44  
45  		SoapUI.getSettings().setString( ProxySettings.HOST, "intra0.frec.bull.fr" );
46        SoapUI.getSettings().setString(ProxySettings.PORT, "8080" );
47        SoapUI.getSettings().setString(ProxySettings.EXCLUDES, "localhost" ); 
48  		
49  		WsdlProject project = new WsdlProject();
50  
51  		// import amazon wsdl
52  		WsdlInterface[] result = project.importWsdl(url, true);
53  
54  		assertEquals(1, result.length);
55  	}*/
56  }