Java Doc for MaintenanceRuleTestBase.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » core » maintenance » 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 » ERP CRM Financial » Kuali Financial System » org.kuali.core.maintenance 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.kfs.context.KualiTestBase
   org.kuali.core.maintenance.MaintenanceRuleTestBase

All known Subclasses:   org.kuali.module.vendor.rules.VendorRuleTest,  org.kuali.module.purap.rules.PurapRuleTestBase,  org.kuali.module.chart.rules.ChartRuleTestBase,
MaintenanceRuleTestBase
abstract public class MaintenanceRuleTestBase extends KualiTestBase (Code)




Method Summary
protected  voidassertErrorCount(int expectedErrorCount)
     This method tests whether the expected number of errors exists in the errorMap.
protected  voidassertFieldErrorDoesNotExist(String fieldName, String errorKey)
     This method tests whether a given combination of fieldName and errorKey does NOT exist in the GlobalVariables.getErrorMap(). The assert will fail if the fieldName & errorKey combination DOES exist.
protected  voidassertFieldErrorExistence(String fieldName, String errorKey, boolean expectedResult)
     This method tests whether the existence check on the error matches what is expected by what is passed into expectedResult.
protected  voidassertFieldErrorExists(String fieldName, String errorKey)
     This method tests whether a given combination of fieldName and errorKey exists in the GlobalVariables.getErrorMap().
protected  voidassertGlobalErrorExists(String errorKey)
     This method tests whether a given errorKey exists on the document itself (ie, not tied to a specific field).
protected  booleandoesFieldErrorExist(String fieldName, String errorKey)
     This method tests whether the field error exists and returns the result of this test.
protected  MaintenanceDocumentnewMaintDoc(PersistableBusinessObject newBo)
     This method creates a minimal MaintenanceDocument instance, and populates it with the provided businessObject for the newMaintainable, and null for the oldMaintainable.
protected  MaintenanceDocumentnewMaintDoc(PersistableBusinessObject oldBo, PersistableBusinessObject newBo)
     This method creates a minimal MaintenanceDocument instance, and populates it with the provided businessObjects for the newMaintainable and oldMaintainable.
protected  MaintenanceDocumentRulesetupMaintDocRule(PersistableBusinessObject newBo, Class ruleClass)
     This method creates a new instance of the specified ruleClass, injects the businessObject(s).
protected  MaintenanceDocumentRulesetupMaintDocRule(PersistableBusinessObject oldBo, PersistableBusinessObject newBo, Class ruleClass)
     This method first creates a new MaintenanceDocument with the BusinessObject(s) passed in.
protected  MaintenanceDocumentRulesetupMaintDocRule(MaintenanceDocument maintDoc, Class ruleClass)
     This method creates a new instance of the specified ruleClass, and then injects the maintenanceDocument and associated business objects.
protected  voidshowErrorMap()
     This method is used during debugging to dump the contents of the error map, including the key names.
protected  voidtestDefaultExistenceCheck(PersistableBusinessObject bo, String fieldName, boolean shouldFail)
    



Method Detail
assertErrorCount
protected void assertErrorCount(int expectedErrorCount)(Code)
This method tests whether the expected number of errors exists in the errorMap. The assert will fail if this expected number isnt what is returned.
Parameters:
  expectedErrorCount - - the number of errors expected



assertFieldErrorDoesNotExist
protected void assertFieldErrorDoesNotExist(String fieldName, String errorKey)(Code)
This method tests whether a given combination of fieldName and errorKey does NOT exist in the GlobalVariables.getErrorMap(). The assert will fail if the fieldName & errorKey combination DOES exist. NOTE that fieldName should NOT include the prefix errorPath.
Parameters:
  fieldName - - fieldName as it would be provided when adding the error
Parameters:
  errorKey - - errorKey as it would be provided when adding the error



assertFieldErrorExistence
protected void assertFieldErrorExistence(String fieldName, String errorKey, boolean expectedResult)(Code)
This method tests whether the existence check on the error matches what is expected by what is passed into expectedResult. This method will fail the assertion if the presence of the error is not what is expected.
Parameters:
  fieldName -
Parameters:
  errorKey -
Parameters:
  expectedResult - - True if the error is expected, False if it is not.



assertFieldErrorExists
protected void assertFieldErrorExists(String fieldName, String errorKey)(Code)
This method tests whether a given combination of fieldName and errorKey exists in the GlobalVariables.getErrorMap(). The assert will fail if the fieldName & errorKey combination doesnt exist. NOTE that fieldName should NOT include the prefix errorPath.
Parameters:
  fieldName - - fieldName as it would be provided when adding the error
Parameters:
  errorKey - - errorKey as it would be provided when adding the error



assertGlobalErrorExists
protected void assertGlobalErrorExists(String errorKey)(Code)
This method tests whether a given errorKey exists on the document itself (ie, not tied to a specific field). The assert will fail if the errorKey already exists on the document.
Parameters:
  errorKey - - errorKey as it would be provided when adding the error



doesFieldErrorExist
protected boolean doesFieldErrorExist(String fieldName, String errorKey)(Code)
This method tests whether the field error exists and returns the result of this test.
Parameters:
  fieldName -
Parameters:
  errorKey - True if the error exists in the GlobalErrors, false if not.



newMaintDoc
protected MaintenanceDocument newMaintDoc(PersistableBusinessObject newBo)(Code)
This method creates a minimal MaintenanceDocument instance, and populates it with the provided businessObject for the newMaintainable, and null for the oldMaintainable.
Parameters:
  newSubAccount - - populated subAccount for the newMaintainable a populated MaintenanceDocument instance



newMaintDoc
protected MaintenanceDocument newMaintDoc(PersistableBusinessObject oldBo, PersistableBusinessObject newBo)(Code)
This method creates a minimal MaintenanceDocument instance, and populates it with the provided businessObjects for the newMaintainable and oldMaintainable.
Parameters:
  oldSubAccount - - populated subAccount for the oldMaintainable
Parameters:
  newSubAccount - - populated subAccount for the newMaintainable a populated MaintenanceDocument instance



setupMaintDocRule
protected MaintenanceDocumentRule setupMaintDocRule(PersistableBusinessObject newBo, Class ruleClass)(Code)
This method creates a new instance of the specified ruleClass, injects the businessObject(s). With this method, the oldMaintainable will be set to null.
Parameters:
  newBo - - the populated businessObject for the newMaintainble
Parameters:
  ruleClass - - the class of rule to instantiate a populated and ready-to-test rule, of the specified class



setupMaintDocRule
protected MaintenanceDocumentRule setupMaintDocRule(PersistableBusinessObject oldBo, PersistableBusinessObject newBo, Class ruleClass)(Code)
This method first creates a new MaintenanceDocument with the BusinessObject(s) passed in. Note that the maintDoc is created and destroyed internally, and is never returned. This method then creates a new instance of the specified ruleClass, injects the businessObject(s).
Parameters:
  oldBo - - the populated businessObject for the oldMaintainable
Parameters:
  newBo - - the populated businessObject for the newMaintainable
Parameters:
  ruleClass - - the class of rule to instantiate a populated and ready-to-test rule, of the specified class



setupMaintDocRule
protected MaintenanceDocumentRule setupMaintDocRule(MaintenanceDocument maintDoc, Class ruleClass)(Code)
This method creates a new instance of the specified ruleClass, and then injects the maintenanceDocument and associated business objects.
Parameters:
  maintDoc - - the populated MaintenanceDocument instance
Parameters:
  ruleClass - - the class of rule to instantiate a populated and ready-to-test rule, of the specified class



showErrorMap
protected void showErrorMap()(Code)
This method is used during debugging to dump the contents of the error map, including the key names. It is not used by the application in normal circumstances at all.



testDefaultExistenceCheck
protected void testDefaultExistenceCheck(PersistableBusinessObject bo, String fieldName, boolean shouldFail)(Code)



Fields inherited from org.kuali.kfs.context.KualiTestBase
final public static String SKIP_OPEN_OR_IN_PROGRESS_OR_REOPENED_JIRA_ISSUES(Code)(Java Doc)
protected static UserSession userSession(Code)(Java Doc)

Methods inherited from org.kuali.kfs.context.KualiTestBase
protected void changeCurrentUser(UserNameFixture sessionUser) throws Exception(Code)(Java Doc)
final public void runBare() throws Throwable(Code)(Java Doc)
protected boolean testTransactionIsRollbackOnly()(Code)(Java Doc)

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