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


org.kuali.kfs.context.KualiTestBase
   org.kuali.kfs.service.BatchInputFileServiceTest

BatchInputFileServiceTest
public class BatchInputFileServiceTest extends KualiTestBase (Code)
Tests the BatchInputFileService. TEST DEPENDENCIES The following are external configurations not setup by the test case that are necessary for the test to run correctly: 1) User identified by the constant Data4_USER_ID2 must be a member of the workgroup given by constant Data2.KUALI_FMSOPS. 2) User identified by the constant Data4_USER_ID1 must NOT be a member of the workgroup given by constant Data2.KUALI_FMSOPS. 3) Five xml files must exist in the PCDO staging directory. Name of files is not important. 4) One Collector files must exist in Collector staging directory. File name should not contain the usernames given by constants Data4_USER_ID2 and Data4_USER_ID1. Note the files in #3 & #4 are created by the project build from files located in project folder buld/configurationFiles/externalConfigDirectory/static/staging/
See Also:   org.kuali.kfs.service.BatchInputFileService
See Also:    Unit tests for this service are also in:
See Also:   org.kuali.kfs.service.BatchInputServiceParseTest
See Also:   org.kuali.kfs.service.BatchInputServiceSystemParametersTest




Method Summary
final public  voidDISABLED_testSave_saveFileNameExists()
     Assures FileStorageException is thrown when a the requested file name is already used by another file on the server.
protected  voidsetUp()
    
protected  voidtearDown()
     Clean up any files created during test methods that were not removed (possibly because of a failure).
final public  voidtestDelete_fileNotFound()
     Assures FileNotFound exception is thrown when an invalid file name to delete is given.
final public  voidtestDelete_incorrectUserPermissions()
     Assures AuthorizationException is thrown when the user does not have permissions to delete a file with the given batch input type.
final public  voidtestDelete_valid()
     Checks existing file was removed by delete method.
final public  voidtestSave_incorrectUserPermissions()
     Assures AuthorizationException is being thrown when the user does not have permissions on the given batch input type.
final public  voidtestSave_valid()
     Checks file was created succesfully for valid call to save method.



Method Detail
DISABLED_testSave_saveFileNameExists
final public void DISABLED_testSave_saveFileNameExists() throws Exception(Code)
Assures FileStorageException is thrown when a the requested file name is already used by another file on the server.



setUp
protected void setUp() throws Exception(Code)

See Also:   junit.framework.TestCase.setUp



tearDown
protected void tearDown() throws Exception(Code)
Clean up any files created during test methods that were not removed (possibly because of a failure).
See Also:   junit.framework.TestCase.tearDown



testDelete_fileNotFound
final public void testDelete_fileNotFound() throws Exception(Code)
Assures FileNotFound exception is thrown when an invalid file name to delete is given.



testDelete_incorrectUserPermissions
final public void testDelete_incorrectUserPermissions() throws Exception(Code)
Assures AuthorizationException is thrown when the user does not have permissions to delete a file with the given batch input type.



testDelete_valid
final public void testDelete_valid() throws Exception(Code)
Checks existing file was removed by delete method.



testSave_incorrectUserPermissions
final public void testSave_incorrectUserPermissions() throws Exception(Code)
Assures AuthorizationException is being thrown when the user does not have permissions on the given batch input type.



testSave_valid
final public void testSave_valid() throws Exception(Code)
Checks file was created succesfully for valid call to save method.



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.