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


org.kuali.kfs.context.KualiTestBase
   org.kuali.bo.BusinessObjectStructureTest

BusinessObjectStructureTest
public class BusinessObjectStructureTest extends KualiTestBase (Code)
This class verifies some rules about setting up Business Objects. Primary Key & References: Object - has attribute, a getter, and setter OJB - not setup as anonymous When no column of the FK is also part of the current objects PK, then anonymous attributes should be used. So: Object - no attribute, no getter, no setter OJB - FK anonymous Should have a a public constructor that takes no arguments Should not initialize other Business Objects, but may initialize other types such as Lists No BO initialization should take place in getters (e.g. "lazy initialization")

Inner Class :static class FileExtensionFilter implements FilenameFilter
Inner Class :static class FileDirectoryFilter implements FileFilter

Field Summary
final static  FileDirectoryFilterDIRECTORY_FILTER
    
final static  FilenameFilterJAVA_FILE_FILTER
    
final static  FileSOURCEDIR
    
 PersistenceTestServiceImplpersistenceTestService
    


Method Summary
public  ClassfileToClass(File file)
     This method converts a File like /java/project/kuali/work/src/org/kuali/MyClass.java into a class e.g.
public  SetfindJavaSourceFiles()
    
public  booleanhasGetter(Object object, String property)
    
public  booleanhasSetter(Object object, String property)
    
public  booleanisBusinessObjectClass(Class klass)
    
public  SetrecursivelyFindFilteredFiles(File directory, FilenameFilter filter)
    
public  voidtest()
    
public  voidverify(Object object, String property, boolean expectGetter, boolean expectSetter)
    
public  voidverifyNestedObjectsAreNull(Object object)
    
public  voidverifyPrimaryKey(Object object)
    

Field Detail
DIRECTORY_FILTER
final static FileDirectoryFilter DIRECTORY_FILTER(Code)



JAVA_FILE_FILTER
final static FilenameFilter JAVA_FILE_FILTER(Code)



SOURCEDIR
final static File SOURCEDIR(Code)



persistenceTestService
PersistenceTestServiceImpl persistenceTestService(Code)





Method Detail
fileToClass
public Class fileToClass(File file) throws ClassNotFoundException(Code)
This method converts a File like /java/project/kuali/work/src/org/kuali/MyClass.java into a class e.g. org.kuali.MyClass
Parameters:
  file - Class
throws:
  ClassNotFoundException -



findJavaSourceFiles
public Set findJavaSourceFiles()(Code)
This method returns a set of Files from SOURCEDIR with an extension of .java Set of Files



hasGetter
public boolean hasGetter(Object object, String property)(Code)



hasSetter
public boolean hasSetter(Object object, String property)(Code)



isBusinessObjectClass
public boolean isBusinessObjectClass(Class klass)(Code)



recursivelyFindFilteredFiles
public Set recursivelyFindFilteredFiles(File directory, FilenameFilter filter)(Code)
This method recursively iterates through a given directory and builds a set of files as allowed by the given filter
Parameters:
  directory - - directory from which to start
Parameters:
  filter - - FilenameFilter that determines whether a file is allowed in the result Set of Files matching filter



test
public void test() throws Exception(Code)



verify
public void verify(Object object, String property, boolean expectGetter, boolean expectSetter)(Code)



verifyNestedObjectsAreNull
public void verifyNestedObjectsAreNull(Object object) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException(Code)



verifyPrimaryKey
public void verifyPrimaryKey(Object object)(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.