1 /*
2 * soapui, copyright (C) 2006 eviware.com
3 *
4 * soapUI is free software; you can redistribute it and/or modify it under the
5 * terms of the GNU Lesser General Public License as published by the Free Software Foundation;
6 * either version 2.1 of the License, or (at your option) any later version.
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.WsdlInterface;
16 import com.eviware.soapui.impl.wsdl.WsdlProject;
17 import com.eviware.soapui.impl.wsdl.support.wsdl.WsdlImporter;
18 import com.eviware.soapui.support.TestCaseWithJetty;
19
20 public class WsdlProjectTestCase extends TestCaseWithJetty
21 {
22 public void testComplexLoad() throws Exception
23 {
24 WsdlProject project = new WsdlProject();
25 WsdlInterface[] wsdls = WsdlImporter.getInstance().importWsdl(project,
26 "http://localhost:8082/test8/TestService.wsdl");
27
28 assertEquals(1, wsdls.length);
29 }
30
31 // public void testImport() throws Exception
32 // {
33 // String url = "http://queue.amazonaws.com/doc/2006-04-01/QueueService.wsdl";
34 //
35 // WsdlProject project = new WsdlProject();
36 //
37 // // import amazon wsdl
38 // WsdlInterface[] result = project.importWsdl(url, true);
39 //
40 // assertEquals(2, result.length);
41 // }
42 /*
43 public void testImport2() throws Exception
44 {
45 String url = "file:forumwsdl/invoke.wsdl";
46
47 SoapUI.getSettings().setString( ProxySettings.HOST, "intra0.frec.bull.fr" );
48 SoapUI.getSettings().setString(ProxySettings.PORT, "8080" );
49 SoapUI.getSettings().setString(ProxySettings.EXCLUDES, "localhost" );
50
51 WsdlProject project = new WsdlProject();
52
53 // import amazon wsdl
54 WsdlInterface[] result = project.importWsdl(url, true);
55
56 assertEquals(1, result.length);
57 }*/
58 }