Java Doc for DynamicRulesTest.java in  » J2EE » Jaffa » org » jaffa » persistence » blackboxtests » 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 » Jaffa » org.jaffa.persistence.blackboxtests 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jaffa.persistence.blackboxtests.DynamicRulesTest

DynamicRulesTest
public class DynamicRulesTest extends TestCase (Code)
This class has various tests for the Dynamic Rules Engine
author:
   GautamJ



Constructor Summary
public  DynamicRulesTest(String name)
    

Method Summary
protected  voidsetUp()
     Sets up the fixture, by creating the UOW.
protected  voidtearDown()
     Tears down the fixture, by closing the UOW.
public  voidtestBooleanFieldValidator()
     This tests the BooleanFieldValidator.
public  voidtestCurrencyFieldValidator()
     This tests the CurrencyFieldValidator.
public  voidtestDateOnlyFieldValidator()
     This tests the DateOnlyFieldValidator.
public  voidtestDateTimeFieldValidator()
     This tests the DateTimeFieldValidator.
public  voidtestDecimalFieldValidator()
     This tests the DecimalFieldValidator.
public  voidtestDomainObjectValidation()
    
public  voidtestExtendsFieldValidation()
     This will create an instance of the Item domain class and update its Status2 field, which internally will invoke the RulesEngine for validating the field.
public  voidtestForeignKeyFieldValidator()
     This will create an instance of the Item domain class and update its Condition field, which internally will invoke the RulesEngine for validating the field.
public  voidtestGenericForeignKeyFieldValidator()
     This will create an instance of the Item domain class and update its Status1 field, which internally will invoke the RulesEngine for validating the field.
public  voidtestInListFieldValidator()
     This will create an instance of the Item domain class and update its Status3 field, which internally will invoke the RulesEngine for validating the field.
public  voidtestIntegerFieldValidator()
     This tests the IntegerFieldValidator.
public  voidtestMandatoryFieldValidator()
     This will directly invoke the doAllValidationsForDomainField() method of the RulesEngine, for validating the rules for the ItemId field of the class Item.
public  voidtestOverridesFieldValidation()
    
public  voidtestStringFieldValidator()
     This tests the StringFieldValidator.


Constructor Detail
DynamicRulesTest
public DynamicRulesTest(String name)(Code)
Creates new QueryTest
Parameters:
  name - The name of the test case.




Method Detail
setUp
protected void setUp()(Code)
Sets up the fixture, by creating the UOW. This method is called before a test is executed.



tearDown
protected void tearDown()(Code)
Tears down the fixture, by closing the UOW. This method is called after a test is executed.



testBooleanFieldValidator
public void testBooleanFieldValidator()(Code)
This tests the BooleanFieldValidator.



testCurrencyFieldValidator
public void testCurrencyFieldValidator()(Code)
This tests the CurrencyFieldValidator.



testDateOnlyFieldValidator
public void testDateOnlyFieldValidator()(Code)
This tests the DateOnlyFieldValidator.



testDateTimeFieldValidator
public void testDateTimeFieldValidator()(Code)
This tests the DateTimeFieldValidator.



testDecimalFieldValidator
public void testDecimalFieldValidator()(Code)
This tests the DecimalFieldValidator.



testDomainObjectValidation
public void testDomainObjectValidation()(Code)
This should perform the mandatory field validations for a domain object



testExtendsFieldValidation
public void testExtendsFieldValidation()(Code)
This will create an instance of the Item domain class and update its Status2 field, which internally will invoke the RulesEngine for validating the field. The Status2 field has been defined to extend the Status1 rules, which in turn has been defined to be a valid generic-foreign-key value in the core-rules.xml file.



testForeignKeyFieldValidator
public void testForeignKeyFieldValidator()(Code)
This will create an instance of the Item domain class and update its Condition field, which internally will invoke the RulesEngine for validating the field. The Condition field has been defined to be a valid foreign-key in the core-rules.xml file.



testGenericForeignKeyFieldValidator
public void testGenericForeignKeyFieldValidator()(Code)
This will create an instance of the Item domain class and update its Status1 field, which internally will invoke the RulesEngine for validating the field. The Status1 field has been defined to be a valid generic-foreign-key in the core-rules.xml file.



testInListFieldValidator
public void testInListFieldValidator()(Code)
This will create an instance of the Item domain class and update its Status3 field, which internally will invoke the RulesEngine for validating the field. The Status3 field has been assigned a list of valid values in the core-rules.xml file.



testIntegerFieldValidator
public void testIntegerFieldValidator()(Code)
This tests the IntegerFieldValidator.



testMandatoryFieldValidator
public void testMandatoryFieldValidator()(Code)
This will directly invoke the doAllValidationsForDomainField() method of the RulesEngine, for validating the rules for the ItemId field of the class Item. The ItemId field has been defined to be mandatory in the core-rules.xml file.



testOverridesFieldValidation
public void testOverridesFieldValidation()(Code)
This will set the variation to 'VAR1' and then invoke the rules for the Status1, Status2 and Status3 fields of Item



testStringFieldValidator
public void testStringFieldValidator()(Code)
This tests the StringFieldValidator.



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