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


org.kuali.kfs.context.KualiTestBase
   org.kuali.module.gl.OriginEntryTestBase

All known Subclasses:   org.kuali.module.gl.batch.BalanceForwardStepTest,  org.kuali.module.gl.service.PosterServiceTest,  org.kuali.module.gl.batch.FileEnterpriseFeederTest,  org.kuali.module.gl.service.ScrubberServiceTest,  org.kuali.module.gl.service.ScrubberFlexibleOffsetTest,  org.kuali.module.gl.batch.ForwardEncumbranceTest,  org.kuali.module.gl.service.impl.orgreversion.OrganizationReversionLogicTest,
OriginEntryTestBase
public class OriginEntryTestBase extends KualiTestBase (Code)
OriginEntryTestBase...the uberpowerful base of a lot of GL tests. Basically, this class provides many convenience methods for writing tests that test against large batches of origin entries.

Inner Class :protected class EntryHolder

Field Summary
protected static  Object[]FLEXIBLE_CLAIM_ON_CASH_BANK_ENABLED_FLAG
    
protected static  Object[]FLEXIBLE_OFFSET_ENABLED_FLAG
    
protected  Datedate
    
protected  ConfigurableDateServicedateTimeService
    
protected  KualiConfigurationServicekualiConfigurationService
    
protected  OriginEntryDaooriginEntryDao
    
protected  OriginEntryGroupServiceoriginEntryGroupService
    
protected  OriginEntryServiceoriginEntryService
    
protected  PersistenceServicepersistenceService
    
protected  UnitTestSqlDaounitTestSqlDao
    

Constructor Summary
public  OriginEntryTestBase()
    

Method Summary
protected  voidassertOriginEntries(int groupCount, EntryHolder[] requiredEntries)
     Check all the entries in gl_origin_entry_t against the data passed in EntryHolder[].
protected  voidclearEncumbranceTable()
     Deletes everything in the gl encumbrance table.
protected  voidclearExpenditureTable()
    
protected  voidclearGlAccountBalanceTable()
    
protected  voidclearGlBalanceTable()
    
protected  voidclearGlEntryTable(String fin_coa_cd, String account_nbr)
    
protected  voidclearOriginEntryTables()
    
protected  voidclearReversalTable()
    
protected  voidclearSufficientFundBalanceTable()
    
protected  intgetGroup(List groups, String groupCode)
    
protected  voidloadInputTransactions(String groupCode, String[] transactions, Date date)
    
protected  voidloadInputTransactions(String groupCode, String[] transactions)
    
protected  voidloadTransactions(String[] transactions, OriginEntryGroup group)
    
protected  voidresetAllEnhancementFlags()
    
protected  voidsetApplicationConfigurationFlag(Class componentClass, String name, boolean value)
    
protected  voidsetUp()
     Sets up this test base; that means getting some services from Spring and reseting the enhancement flags.
protected  voidtrace(Object o, int tabIndentCount)
    
protected  voidtraceList(List list, String name)
    

Field Detail
FLEXIBLE_CLAIM_ON_CASH_BANK_ENABLED_FLAG
protected static Object[] FLEXIBLE_CLAIM_ON_CASH_BANK_ENABLED_FLAG(Code)



FLEXIBLE_OFFSET_ENABLED_FLAG
protected static Object[] FLEXIBLE_OFFSET_ENABLED_FLAG(Code)



date
protected Date date(Code)



dateTimeService
protected ConfigurableDateService dateTimeService(Code)



kualiConfigurationService
protected KualiConfigurationService kualiConfigurationService(Code)



originEntryDao
protected OriginEntryDao originEntryDao(Code)



originEntryGroupService
protected OriginEntryGroupService originEntryGroupService(Code)



originEntryService
protected OriginEntryService originEntryService(Code)



persistenceService
protected PersistenceService persistenceService(Code)



unitTestSqlDao
protected UnitTestSqlDao unitTestSqlDao(Code)




Constructor Detail
OriginEntryTestBase
public OriginEntryTestBase()(Code)
Constructs a OriginEntryTestBase instance




Method Detail
assertOriginEntries
protected void assertOriginEntries(int groupCount, EntryHolder[] requiredEntries)(Code)
Check all the entries in gl_origin_entry_t against the data passed in EntryHolder[]. If any of them are different, assert an error.
Parameters:
  groupCount - the expected size of the group
Parameters:
  requiredEntries - an array of expected String-formatted entries to check against



clearEncumbranceTable
protected void clearEncumbranceTable()(Code)
Deletes everything in the gl encumbrance table.



clearExpenditureTable
protected void clearExpenditureTable()(Code)
Deletes everything in the expenditure transaction table



clearGlAccountBalanceTable
protected void clearGlAccountBalanceTable()(Code)
Deletes everything in the gl account balance table



clearGlBalanceTable
protected void clearGlBalanceTable()(Code)
Deletes everything in the gl balance table



clearGlEntryTable
protected void clearGlEntryTable(String fin_coa_cd, String account_nbr)(Code)
Deletes all entries in the entry table with the given chart code and account number
Parameters:
  fin_coa_cd - the chart code of entries to delete
Parameters:
  account_nbr - the account number of entries to delete



clearOriginEntryTables
protected void clearOriginEntryTables()(Code)
Deletes everything in the gl origin entry table and the gl origin entry group table



clearReversalTable
protected void clearReversalTable()(Code)
Deletes everything in the gl reversal table



clearSufficientFundBalanceTable
protected void clearSufficientFundBalanceTable()(Code)
Deletes everything in the sufficient fund balance table



getGroup
protected int getGroup(List groups, String groupCode)(Code)
Given a list of origin entry groups and a group source code, returns the id of the group with that source code
Parameters:
  groups - a List of groups to selectg a group from
Parameters:
  groupCode - the source code of the group to select the id of the first group in the list with that source code, or -1 if no groups with that source code were found



loadInputTransactions
protected void loadInputTransactions(String groupCode, String[] transactions, Date date)(Code)
Given a group source code and a bunch of transactions, creates a new group and adds all the transactions to that group
Parameters:
  groupCode - the source code of the new group
Parameters:
  transactions - an array of String-formatted entries to save into the group
Parameters:
  date - the creation date of the new group



loadInputTransactions
protected void loadInputTransactions(String groupCode, String[] transactions)(Code)
Given a group source code and a bunch of transactions, creates a new group and adds all the transactions to that group; sets the group creation date to today
Parameters:
  groupCode - the source code of the new group
Parameters:
  transactions - an array of String-formatted entries to save into the group



loadTransactions
protected void loadTransactions(String[] transactions, OriginEntryGroup group)(Code)
Loads an array of String formatted entries into the given origin entry group
Parameters:
  transactions - an array of String formatted entries
Parameters:
  group - the group to save those entries into



resetAllEnhancementFlags
protected void resetAllEnhancementFlags() throws Exception(Code)
Resets the flexible offset and flexible claim on cash parameters, so that processes running as unit tests have consistent behaviors
throws:
  Exception - if the parameters could not be reset for some reason



setApplicationConfigurationFlag
protected void setApplicationConfigurationFlag(Class componentClass, String name, boolean value) throws Exception(Code)
Resets a parameter for the sake of the unit test
Parameters:
  componentClass - the module class of the parameter
Parameters:
  name - the name of the parameter to reset
Parameters:
  value - the new value for the parameter
throws:
  Exception - thrown if some vague thing goes wrong



setUp
protected void setUp() throws Exception(Code)
Sets up this test base; that means getting some services from Spring and reseting the enhancement flags.
See Also:   junit.framework.TestCase.setUp



trace
protected void trace(Object o, int tabIndentCount)(Code)
Writes an object to standard out
Parameters:
  o - the object to output, after..
Parameters:
  tabIndentCount - the number of tabs to push the object output



traceList
protected void traceList(List list, String name)(Code)
Outputs the entire contents of a List to System.out
Parameters:
  list - a List, presumably of Origin entries, but really, it could be anything
Parameters:
  name - the name of the list to display in the output



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.