Java Doc for WebServicesTestBase.java in  » IDE-Netbeans » web.core » org » netbeans » modules » ws » qaf » 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 » IDE Netbeans » web.core » org.netbeans.modules.ws.qaf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.modules.ws.qaf.WebServicesTestBase

All known Subclasses:   org.netbeans.modules.ws.qaf.editor.HintsTests,  org.netbeans.modules.ws.qaf.designer.WebServiceDesignerTest,  org.netbeans.modules.ws.qaf.WebServiceSamplesTest,  org.netbeans.modules.ws.qaf.rest.RestTestBase,  org.netbeans.modules.ws.qaf.WsValidation,
WebServicesTestBase
abstract public class WebServicesTestBase extends JellyTestCase (Code)
Base class for web services UI tests
author:
   lukas

Inner Class :protected enum ProjectType
Inner Class :protected enum JavaEEVersion
Inner Class :protected enum ServerType

Field Summary
final protected static  ServerTypeREGISTERED_SERVER
    

Constructor Summary
public  WebServicesTestBase(String name)
     Default constructor.

Method Summary
protected  voidcreateNewFile(Project p, String fileCategory, String fileType)
    
protected  voidcreateNewWSFile(Project p, String fileType)
    
protected  ProjectcreateProject(String name, ProjectType type, JavaEEVersion javaeeVersion)
     Helper method to be used by subclasses to create new project according to given parameters.
protected  voiddeployProject(String projectName)
    
protected  voiddumpOutput()
     Save content of output tabs into test's working directory.
protected  JavaEEVersiongetJavaEEversion()
    
protected  ProjectgetProject()
    
abstract protected  StringgetProjectName()
    
protected  ProjectRootNodegetProjectRootNode()
    
protected  ProjectTypegetProjectType()
    
protected  StringgetSamplesCategoryName()
     Get the name of the sample project's category (ie.
protected  voidrunProject(String projectName)
    
public  voidsetUp()
    
public  voidtearDown()
    
public  voidtestStartServer()
    
public  voidtestStopServer()
    
protected  voidundeployProject(String projectName)
    
protected  voidwaitDialogClosed(String dialogTitle)
    

Field Detail
REGISTERED_SERVER
final protected static ServerType REGISTERED_SERVER(Code)




Constructor Detail
WebServicesTestBase
public WebServicesTestBase(String name)(Code)
Default constructor.
Parameters:
  testName - name of particular test case




Method Detail
createNewFile
protected void createNewFile(Project p, String fileCategory, String fileType)(Code)
Helper method to be used by subclasses to create new file of given fileType from fileCategory category
Parameters:
  p - project where to create new file
Parameters:
  fileType - file type name from web services category



createNewWSFile
protected void createNewWSFile(Project p, String fileType)(Code)
Helper method to be used by subclasses to create new file of given fileType from Web Services category
Parameters:
  p - project where to create new file
Parameters:
  fileType - file type name from web services category



createProject
protected Project createProject(String name, ProjectType type, JavaEEVersion javaeeVersion) throws IOException(Code)
Helper method to be used by subclasses to create new project according to given parameters. Default server registered in the IDE will be used.
Parameters:
  name - project or sample name
Parameters:
  type - project type
Parameters:
  javaeeVersion - server type, can be null created project
throws:
  java.io.IOException -



deployProject
protected void deployProject(String projectName) throws IOException(Code)
Deploy a project
Parameters:
  projectName - name of the project to be deployed



dumpOutput
protected void dumpOutput() throws IOException(Code)
Save content of output tabs into test's working directory. Might be useful for diagnosing possible test failures
throws:
  java.io.IOException -



getJavaEEversion
protected JavaEEVersion getJavaEEversion()(Code)
Java EE version set for test case, JavaEEVersion.JAVAEE5 is used by default Override this method to use different Java EE version Java EE version set for test case



getProject
protected Project getProject()(Code)
Get a Project instance used by test case a Project instance



getProjectName
abstract protected String getProjectName()(Code)
Get the name of the project to be used by test case name of the project



getProjectRootNode
protected ProjectRootNode getProjectRootNode()(Code)
Get Node for the project used by test case an instance of ProjectRootNode



getProjectType
protected ProjectType getProjectType()(Code)
Project type set for test case, ProjectType.WEB is used by default Override this method to use different ProjectType ProjectType set for test case



getSamplesCategoryName
protected String getSamplesCategoryName()(Code)
Get the name of the sample project's category (ie. Web Services) name of the project



runProject
protected void runProject(String projectName) throws IOException(Code)
Run a project
Parameters:
  projectName - name of the project to be run



setUp
public void setUp() throws Exception(Code)
Method responsible for checking and setting up environment for particular test case, mainly for setting up project to be used by test case.
Following logic is used for setting up a project (Note that getProjectName() method is used for getting correct project name):
  1. look for a project in projects directory in data directory and if project is found there then open it in the IDE
  2. look for a project in System.getProperty("xtest.tmpdir") (if test is run by XTest) or in System.getProperty("java.io.tmpdir") directory (if internal execution is used), if project is found then open it in the IDE
  3. if project is not found then it will be created from scratch

throws:
  java.lang.Exception -



tearDown
public void tearDown() throws Exception(Code)



testStartServer
public void testStartServer() throws IOException(Code)
Start a server



testStopServer
public void testStopServer() throws IOException(Code)
Stop a server



undeployProject
protected void undeployProject(String projectName) throws IOException(Code)
Undeploy a project
Parameters:
  projectName - name of the project to be undeployed



waitDialogClosed
protected void waitDialogClosed(String dialogTitle)(Code)
Wait until dialog with title dialogTitle is closed
Parameters:
  dialogTitle - title of the dialog to be closed



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.