Source Code Cross Referenced for F_WsWarSample.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » examples » clients » webservices » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.examples.clients.webservices 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * JOnAS: Java(TM) Open Application Server
003:         * Copyright (C) 1999-2005 Bull S.A.
004:         * Contact: jonas-team@objectweb.org
005:         *
006:         * This library is free software; you can redistribute it and/or
007:         * modify it under the terms of the GNU Lesser General Public
008:         * License as published by the Free Software Foundation; either
009:         * version 2.1 of the License, or 1any later version.
010:         *
011:         * This library is distributed in the hope that it will be useful,
012:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
013:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014:         * Lesser General Public License for more details.
015:         *
016:         * You should have received a copy of the GNU Lesser General Public
017:         * License along with this library; if not, write to the Free Software
018:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
019:         * USA
020:         *
021:         * --------------------------------------------------------------------------
022:         * $Id: F_WsWarSample.java 7547 2005-10-20 15:03:58Z sauthieg $
023:         * --------------------------------------------------------------------------
024:         */package org.objectweb.jonas.examples.clients.webservices;
025:
026:        import java.io.File;
027:
028:        import junit.framework.TestSuite;
029:
030:        /**
031:         * Define a class to test the webServices examples wsWarExample
032:         * Test WebServices deployment OK and test Call on deployed WebService
033:         * @author Guillaume Sauthier
034:         */
035:        public class F_WsWarSample extends A_WebServicesEndpoint {
036:
037:            /**
038:             * URL of the wsWarSample page
039:             */
040:            private static final String URL_WSWARSAMPLE = "/wswarsample/";
041:
042:            /**
043:             * Main method
044:             * @param args the arguments
045:             */
046:            public static void main(String[] args) {
047:
048:                String testtorun = null;
049:                // Get args
050:                for (int argn = 0; argn < args.length; argn++) {
051:                    String sArg = args[argn];
052:                    if (sArg.equals("-n")) {
053:                        testtorun = args[++argn];
054:                    }
055:                }
056:
057:                if (testtorun == null) {
058:                    junit.textui.TestRunner.run(suite());
059:                } else {
060:                    junit.textui.TestRunner.run(new F_WsWarSample(testtorun));
061:                }
062:            }
063:
064:            /**
065:             * Get a new TestSuite for this class
066:             * @return a new TestSuite for this class
067:             */
068:            public static TestSuite suite() {
069:                return new TestSuite(F_WsWarSample.class);
070:            }
071:
072:            /**
073:             * Setup need for these tests
074:             * earsample is required
075:             * @throws Exception if it fails
076:             */
077:            protected void setUp() throws Exception {
078:                super .setUp();
079:                useWar("wswarsample");
080:            }
081:
082:            /**
083:             * Constructor with a specified name
084:             * @param s name
085:             */
086:            public F_WsWarSample(String s) {
087:                super (s, URL_WSWARSAMPLE);
088:            }
089:
090:            /**
091:             * Check if home page is accessible
092:             * @throws Exception if an error occurs
093:             */
094:            public void testDeploymentCompleted() throws Exception {
095:                // 3 links + 3 logo links on homepage
096:                checkDeploymentCompleted(3 + 3);
097:            }
098:
099:            /**
100:             * Check if Axis is Running
101:             * @throws Exception if an error occurs
102:             */
103:            public void testAxisServicesAccessible() throws Exception {
104:
105:                // links to /jaxrpcEndpoint1/* in first place (0)
106:                checkAxisServicesAccessible(3, "endpoints", "jaxrpc");
107:            }
108:
109:            /**
110:             * Check if WSDL is generated
111:             * @throws Exception if an error occurs
112:             */
113:            public void testAxisWSDL() throws Exception {
114:
115:                // for wsWarSample axis generated WSDL link is in second place (1)
116:                checkAxisWSDL("endpoints/jaxrpc?JWSDL");
117:            }
118:
119:            /**
120:             * Check if deployed WebService is running
121:             * @throws Exception if an error occurs
122:             */
123:            public void testDeployedWebService() throws Exception {
124:
125:                this .wc.setAuthorization("jonas", "jonas");
126:                checkDeployedWebService("jaxrpcTest.jsp", url
127:                        + "endpoints/jaxrpc", "JOnAS",
128:                        "JOnAS JaxRpc WebService Test Page");
129:            }
130:
131:            /**
132:             * Check if WSDL has been published
133:             * @throws Exception if an error occurs
134:             */
135:            public void testWSDLPublication() throws Exception {
136:
137:                checkWSDLPublication("MyWebService" + File.separator
138:                        + "jaxrpcEndpoint.wsdl",
139:                        "http://ws.servlets.wssample.objectweb.org",
140:                        "JaxRpcEndpointInterfaceService", "JaxRpcEndpoint1",
141:                        url + "endpoints/jaxrpc");
142:
143:            }
144:
145:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.