01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * 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: public void testComplexLoad() throws Exception {
20: WsdlProject project = new WsdlProject();
21: WsdlInterface[] wsdls = WsdlImporter.getInstance()
22: .importWsdl(project,
23: "http://localhost:8082/test8/TestService.wsdl");
24:
25: assertEquals(1, wsdls.length);
26: }
27:
28: // public void testImport() throws Exception
29: // {
30: // String url = "http://queue.amazonaws.com/doc/2006-04-01/QueueService.wsdl";
31: //
32: // WsdlProject project = new WsdlProject();
33: //
34: // // import amazon wsdl
35: // WsdlInterface[] result = project.importWsdl(url, true);
36: //
37: // assertEquals(2, result.length);
38: // }
39: /*
40: public void testImport2() throws Exception
41: {
42: String url = "file:forumwsdl/invoke.wsdl";
43:
44: SoapUI.getSettings().setString( ProxySettings.HOST, "intra0.frec.bull.fr" );
45: SoapUI.getSettings().setString(ProxySettings.PORT, "8080" );
46: SoapUI.getSettings().setString(ProxySettings.EXCLUDES, "localhost" );
47:
48: WsdlProject project = new WsdlProject();
49:
50: // import amazon wsdl
51: WsdlInterface[] result = project.importWsdl(url, true);
52:
53: assertEquals(1, result.length);
54: }*/
55: }
|