Java Doc for IterationTests.java in  » Workflow-Engines » bonita-v3.1 » hero » client » 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 » bonita v3.1 » hero.client.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


hero.client.test.IterationTests

IterationTests
public class IterationTests extends TestCase (Code)



Constructor Summary
public  IterationTests(String testname)
    

Method Summary
public  voidsetUp()
    
public static  TestSuitesuite()
    
public  voidtestAutomaticArbitraryCycles()
    
public  voidtestExtraEntryPointsBig1()
     Based on testFinalizeIteration() (iterates 3 times and then finalizes the iteration)
Now with more entry points.
public  voidtestExtraEntryPointsBig2()
    
public  voidtestExtraEntryPointsBig3()
     Based on testExtraEntryPointsBig1() (iterates 3 times and then finalizes the iteration)
Uses: Automatic and non automatic traditional activities
Extra entry points : node3 = OR_JOIN -- node5B = OR_JOIN_AUTOMATIC
Now: it will iterate extraB will be true.
public  voidtestExtraEntryPointsSimple1()
    
public  voidtestExtraEntryPointsSimple2()
    
public  voidtestExtraEntryPointsSimple3()
    
public  voidtestExtraEntryPointsSimple4()
    
public  voidtestExtraEntryPointsSimple5()
    
public  voidtestFinalizeIteration()
    
public  voidtestFinalizeIterationORjoin()
    
public  voidtestIterationInsideIteration()
    
public  voidtestIterationsConstrains()
    
public  voidtestLeaveIteration()
    
public  voidtestManualArbitraryCycles()
    
public  voidtestRepeatActivity()
    
public  voidtestSubProcessesIteration()
    
public  voidtestSubProcessesIterationOnlySubProcesses()
    


Constructor Detail
IterationTests
public IterationTests(String testname)(Code)




Method Detail
setUp
public void setUp() throws Exception(Code)



suite
public static TestSuite suite()(Code)



testAutomaticArbitraryCycles
public void testAutomaticArbitraryCycles() throws Exception(Code)
Tests arbitrary cycles with automatic activities using random values to evaluate the conditions Uses: Automaticand non automatic traditional activities
throws:
  Exception -



testExtraEntryPointsBig1
public void testExtraEntryPointsBig1() throws Exception(Code)
Based on testFinalizeIteration() (iterates 3 times and then finalizes the iteration)
Now with more entry points. Normal behaviour.
Uses: Automatic and non automatic traditional activities
Extra entry points = AND_JOIN (node3 & node5B)

throws:
  Exception -



testExtraEntryPointsBig2
public void testExtraEntryPointsBig2() throws Exception(Code)
Based on testExtraEntryPointsBig1()
Now extraA node has a false condition that CANCELS some nodes inside the iteration
Uses: Automatic and non automatic traditional activities
Extra entry points : node3 = AND_JOIN_AUTOMATIC -- node5B = AND_JOIN

throws:
  Exception -



testExtraEntryPointsBig3
public void testExtraEntryPointsBig3() throws Exception(Code)
Based on testExtraEntryPointsBig1() (iterates 3 times and then finalizes the iteration)
Uses: Automatic and non automatic traditional activities
Extra entry points : node3 = OR_JOIN -- node5B = OR_JOIN_AUTOMATIC
Now: it will iterate extraB will be true. Edges comming from extraA, extraC, node1 will be false
extra5B will start before extra5A because extraZ2 will be executed before extra5A

throws:
  Exception -



testExtraEntryPointsSimple1
public void testExtraEntryPointsSimple1() throws Exception(Code)
It tests extra entry points incoming to an iteration
Uses: node2 = AND_JOIN and true conditions

throws:
  Exception -



testExtraEntryPointsSimple2
public void testExtraEntryPointsSimple2() throws Exception(Code)
It tests extra entry points incoming to an iteration
Uses: node2 = AND_JOIN and a false condition

throws:
  Exception -



testExtraEntryPointsSimple3
public void testExtraEntryPointsSimple3() throws Exception(Code)
It tests extra entry points incoming to an iteration
Also tests node properties propagation : when it iterates takes the previous value.
nodeProperties are not propagated through the iteration
Uses: node2 = OR_JOIN and has a true in edge from an extra entry

throws:
  Exception -



testExtraEntryPointsSimple4
public void testExtraEntryPointsSimple4() throws Exception(Code)
It tests extra entry points incoming to an iteration
Uses: node2 = OR_JOIN_AUTOMATIC and has a true condition from an extra entry
in this case it will start node2 automaticly before node1 due to setIterationPathInitial()
throws:
  Exception -



testExtraEntryPointsSimple5
public void testExtraEntryPointsSimple5() throws Exception(Code)
It tests extra entry points incoming to an iteration
Uses: node2 = OR_JOIN and all the conditions are false
it propagates a CANCEL
throws:
  Exception -



testFinalizeIteration
public void testFinalizeIteration() throws Exception(Code)
Tests that the iteration finalizes correctly (based on testLeaveIteration) Uses: Automatic and Non automatic anticipable activities
throws:
  Exception -



testFinalizeIterationORjoin
public void testFinalizeIterationORjoin() throws Exception(Code)
Tests that the iteration finalizes correctly with OR activities (based on testFinalizeIteration) Uses: Automatic and Non automatic anticipable activities
throws:
  Exception -



testIterationInsideIteration
public void testIterationInsideIteration() throws Exception(Code)
Tests a iteration inside another iteration Uses: Non automatic traditional activities
throws:
  Exception -



testIterationsConstrains
public void testIterationsConstrains() throws Exception(Code)
Tests all constrains related with iteration definition model
All restrictions defined in hero.session.ProjectSessionBean checkModelDefinition() and related with iterations should be tested here
To do that, it forces to throw all the possible Exceptions

MultiIterationsLeaving ****

path=A *
- - - - - - - - *
| path=B | *
| - - - - | *
| | ||path=D *
A----->B----->C----->D *
|_| *
path=C *



Uses: Non automatic traditional activities

throws:
  Exception -



testLeaveIteration
public void testLeaveIteration() throws Exception(Code)
Tests the correct exit from the iterations Uses: Automatic and Non automatic anticipable activities
throws:
  Exception -



testManualArbitraryCycles
public void testManualArbitraryCycles() throws Exception(Code)
Tests that we can loop throw two crossed iterations as we want Uses: Non automatic traditional activities
throws:
  Exception -



testRepeatActivity
public void testRepeatActivity() throws Exception(Code)
Tests a iteration over the same activity Uses: Non automatic traditional activities
throws:
  Exception -



testSubProcessesIteration
public void testSubProcessesIteration() throws Exception(Code)
Tests that an iteration with a subprocess inside: node->subProc->node Uses: Non automatic anticipable activities
throws:
  Exception -



testSubProcessesIterationOnlySubProcesses
public void testSubProcessesIterationOnlySubProcesses() throws Exception(Code)
Tests iterations between 2 subprocesses Uses: Non automatic anticipable activities
throws:
  Exception -



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