Java Doc for ToolAgentTestBase.java in  » Workflow-Engines » wfmopen-2.1.1 » de » danet » an » workflow » tools » test » 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 » Workflow Engines » wfmopen 2.1.1 » de.danet.an.workflow.tools.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.danet.an.workflow.tools.test.ToolAgentTestBase

All known Subclasses:   de.danet.an.workflow.tools.test.JellyTest,  de.danet.an.workflow.tools.test.XSLToolTest,  tools.EJBInvokerTest,  de.danet.an.workflow.tools.test.JSExecutorTest,
ToolAgentTestBase
abstract public class ToolAgentTestBase extends TestCase (Code)
Basic unit test for ToolAgent s.
author:
   Dirk Schnelle

Inner Class :public class TestActivity implements Activity
Inner Class :public class UnitTestLoginContext extends LoginContext

Field Summary
final public static  ObjectFP_TYPE_BOOL
     Expected parameter type boolean.
final public static  ObjectFP_TYPE_DATE
     Expected parameter type date.
final public static  ObjectFP_TYPE_FLOAT
     Expected parameter schema type.
final public static  ObjectFP_TYPE_INT
     Expected parameter type long.
final public static  ObjectFP_TYPE_SCHEMA
     Expected parameter type schema.
final public static  ObjectFP_TYPE_SCHEMA_JDOM
     Expected parameter type schema as a JDOM tree.
final public static  ObjectFP_TYPE_SCHEMA_SAX
     Expected parameter type schema with a SAXEventBuffer .
final public static  ObjectFP_TYPE_SCHEMA_W3C_DOM
     Expected parameter type schema as a W3C DOM tree.
final public static  ObjectFP_TYPE_STRING
     Expected parameter type string.

Constructor Summary
public  ToolAgentTestBase()
     Constructs a test case without a name.
public  ToolAgentTestBase(String name)
     Constructs a test case with the specified name.

Method Summary
abstract public  ToolAgentcreateToolAgent()
     Factory method to create the tool agent to test.
protected  ToolAgentgetTool()
     Retrieves a reference to the tool.
protected  ObjectgetToolResult()
     Retrieves the result after a tool invocation.
protected  ObjectgetToolResult(FormalParameter fp)
     Shortcut to retrieve the tool result for the given formal parameter.
protected  voidinvokeTool(FormalParameter[] formPars, Map map)
     Invoke the tool with the given script.
protected  SAXEventBufferImplloadDocument(String name)
     Convenient method to read an XML document.
Parameters:
  name - filename of the document to load.
protected  voidlogin()
     Login with with the default settings.
protected  voidlogout()
     Logout.
protected  voidsetUp()
    

Field Detail
FP_TYPE_BOOL
final public static Object FP_TYPE_BOOL(Code)
Expected parameter type boolean.



FP_TYPE_DATE
final public static Object FP_TYPE_DATE(Code)
Expected parameter type date.



FP_TYPE_FLOAT
final public static Object FP_TYPE_FLOAT(Code)
Expected parameter schema type.



FP_TYPE_INT
final public static Object FP_TYPE_INT(Code)
Expected parameter type long.



FP_TYPE_SCHEMA
final public static Object FP_TYPE_SCHEMA(Code)
Expected parameter type schema.



FP_TYPE_SCHEMA_JDOM
final public static Object FP_TYPE_SCHEMA_JDOM(Code)
Expected parameter type schema as a JDOM tree.



FP_TYPE_SCHEMA_SAX
final public static Object FP_TYPE_SCHEMA_SAX(Code)
Expected parameter type schema with a SAXEventBuffer .



FP_TYPE_SCHEMA_W3C_DOM
final public static Object FP_TYPE_SCHEMA_W3C_DOM(Code)
Expected parameter type schema as a W3C DOM tree.



FP_TYPE_STRING
final public static Object FP_TYPE_STRING(Code)
Expected parameter type string.




Constructor Detail
ToolAgentTestBase
public ToolAgentTestBase()(Code)
Constructs a test case without a name.



ToolAgentTestBase
public ToolAgentTestBase(String name)(Code)
Constructs a test case with the specified name.
Parameters:
  name - name of the test.




Method Detail
createToolAgent
abstract public ToolAgent createToolAgent()(Code)
Factory method to create the tool agent to test. the tool instance.



getTool
protected ToolAgent getTool()(Code)
Retrieves a reference to the tool. the tool.



getToolResult
protected Object getToolResult() throws NoSuchElementException(Code)
Retrieves the result after a tool invocation. result.
exception:
  NoSuchElementException - Tool does not provide a result.



getToolResult
protected Object getToolResult(FormalParameter fp) throws NoSuchElementException(Code)
Shortcut to retrieve the tool result for the given formal parameter.
Parameters:
  fp - the formal parameter result.
exception:
  NoSuchElementException - Tool does not provide a result.



invokeTool
protected void invokeTool(FormalParameter[] formPars, Map map) throws RemoteException, CannotExecuteException(Code)
Invoke the tool with the given script.
Parameters:
  formPars -
Parameters:
  map -
throws:
  RemoteException -
throws:
  CannotExecuteException -



loadDocument
protected SAXEventBufferImpl loadDocument(String name) throws IOException, SAXException(Code)
Convenient method to read an XML document.
Parameters:
  name - filename of the document to load. Loaded document
throws:
  IOException - Error reading the document.
throws:
  SAXException - Error in the document.



login
protected void login() throws LoginException(Code)
Login with with the default settings.
throws:
  LoginException - Unable to log in.



logout
protected void logout() throws LoginException(Code)
Logout.
throws:
  LoginException - Error logging out.



setUp
protected void setUp() throws Exception(Code)



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