Java Doc for PersistenceManagerImplFullTest.java in  » Database-ORM » TJDO » com » triactive » jdo » test » 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 » Database ORM » TJDO » com.triactive.jdo.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.triactive.jdo.test.DatabaseTestCase
   com.triactive.jdo.test.PersistenceTestCase
      com.triactive.jdo.test.PersistenceManagerImplFullTest

PersistenceManagerImplFullTest
public class PersistenceManagerImplFullTest extends PersistenceTestCase (Code)
This class is a JUnit test class for unit testing com.triactive.jdo.PersistenceManagerImpl.



Constructor Summary
public  PersistenceManagerImplFullTest(String name)
     Used by the JUnit framework to construct tests.

Method Summary
public  voidcleanup()
    
public static  voidmain(String args)
    
static  voidsetPrimitiveValues(Primitive p, boolean b, byte y, char c, int i, short s, long l, float f, double d, String fstr, String nstr, String hstr, java.util.Date dt1, java.sql.Date dt2, java.sql.Timestamp tm)
    
public  voidsetUp()
    
public  voidtearDown()
    
public  voidtestDeletePersistent()
    
public  voidtestDeletePersistentExceptions()
    
public  voidtestExtentSubclasses()
    
public  voidtestFCOReferencedObjectsPersistence()
    
public  voidtestInheritedFieldsPersisted()
    
public  voidtestInstanceCallbacks()
    
public  voidtestInverseFCOCollectionFieldPersistence1()
     Test that FCOs added to a Collection field of an inverse Collection are persisted when the owning PC is persisted.
public  voidtestInverseFCOCollectionFieldPersistence2()
    
public  voidtestInverseFCOCollectionFieldPersistence3()
    
public  voidtestInverseFCOCollectionFieldPersistence4()
    
public  voidtestJavaIdentity()
    
public  voidtestMakeCollectionFieldsPersistent()
    
public  voidtestMakePersistent()
     Tests storage of various datatypes using the makePersistent method.
public  voidtestMakeTransient()
    
public  voidtestMakeTransientAll()
    
public  voidtestMakeTransientExceptions()
    
public  voidtestNormalCollectionFieldPersistence1()
     This test was written as a result of a bug that was found.
public  voidtestNormalFCOCollectionFieldPersistence1()
     Test that FCOs added to a Collection field are persisted when the owning PC is persisted.
public  voidtestNormalFCOCollectionFieldPersistence2()
    
public  voidtestNormalFCOCollectionFieldPersistence3()
    
public  voidtestNormalFCOCollectionFieldPersistence4()
    
public  voidtestPCFieldAccess()
    
public  voidtestQueryPM()
    
public  voidtestStateTransitions()
    
public  voidtestTransientObjectCollections()
     Tests that objects can be added to a Collection owned by a persistent object made transient.
public  voidtestUpdatePersistentFields()
    
public  voidtestUpdatePersistentFieldsExceptions()
    


Constructor Detail
PersistenceManagerImplFullTest
public PersistenceManagerImplFullTest(String name)(Code)
Used by the JUnit framework to construct tests.
Parameters:
  name - Name of the TestCase.




Method Detail
cleanup
public void cleanup()(Code)
Delete all data from all test tables



main
public static void main(String args)(Code)



setPrimitiveValues
static void setPrimitiveValues(Primitive p, boolean b, byte y, char c, int i, short s, long l, float f, double d, String fstr, String nstr, String hstr, java.util.Date dt1, java.sql.Date dt2, java.sql.Timestamp tm)(Code)



setUp
public void setUp() throws java.lang.Exception(Code)
Invoked before each test is run



tearDown
public void tearDown() throws java.lang.Exception(Code)
Invoked after each test is run



testDeletePersistent
public void testDeletePersistent() throws Exception(Code)
Simple test of deletePersistent method



testDeletePersistentExceptions
public void testDeletePersistentExceptions() throws Exception(Code)
Tests attempts to delete a transient object



testExtentSubclasses
public void testExtentSubclasses() throws Exception(Code)



testFCOReferencedObjectsPersistence
public void testFCOReferencedObjectsPersistence()(Code)
Test that persisting a PC will also persist all FCOs that are referenced by that PC



testInheritedFieldsPersisted
public void testInheritedFieldsPersisted()(Code)
Test that inherited fields are persisted



testInstanceCallbacks
public void testInstanceCallbacks()(Code)
Tests the InstanceCallback interface methods



testInverseFCOCollectionFieldPersistence1
public void testInverseFCOCollectionFieldPersistence1()(Code)
Test that FCOs added to a Collection field of an inverse Collection are persisted when the owning PC is persisted.



testInverseFCOCollectionFieldPersistence2
public void testInverseFCOCollectionFieldPersistence2()(Code)
Test that when inverse FCOs are persisted, the owning PC is persisted also



testInverseFCOCollectionFieldPersistence3
public void testInverseFCOCollectionFieldPersistence3()(Code)
Test that deleting an object that is a member of an inverse Collection field also removes it from the Collection



testInverseFCOCollectionFieldPersistence4
public void testInverseFCOCollectionFieldPersistence4()(Code)
Test that setting the inverse reference of an object implicitly adds it to the inverse collection of the "owning" object



testJavaIdentity
public void testJavaIdentity()(Code)
Test that getObjectId() returns the same value when called on a newly persistent PC as when called on a query result that should return that same persistent object



testMakeCollectionFieldsPersistent
public void testMakeCollectionFieldsPersistent() throws Exception(Code)
Test that updates of collection and inverse collection fields update the underlying collection



testMakePersistent
public void testMakePersistent() throws Exception(Code)
Tests storage of various datatypes using the makePersistent method.



testMakeTransient
public void testMakeTransient() throws Exception(Code)
Simple test of makeTransient()



testMakeTransientAll
public void testMakeTransientAll() throws Exception(Code)
Simple test of makeTransientAll()



testMakeTransientExceptions
public void testMakeTransientExceptions() throws Exception(Code)
Tests attempts to call makeTransient outside a transaction



testNormalCollectionFieldPersistence1
public void testNormalCollectionFieldPersistence1()(Code)
This test was written as a result of a bug that was found. Test persisting an object with a collection field, add objects to the collection, make the owning object transient, and then persist it again.



testNormalFCOCollectionFieldPersistence1
public void testNormalFCOCollectionFieldPersistence1()(Code)
Test that FCOs added to a Collection field are persisted when the owning PC is persisted.



testNormalFCOCollectionFieldPersistence2
public void testNormalFCOCollectionFieldPersistence2()(Code)
Test that deleting an object that is a member of a Collection field throws an exception



testNormalFCOCollectionFieldPersistence3
public void testNormalFCOCollectionFieldPersistence3()(Code)
Test that removing a member of a normal Collection field does NOT delete the object that was removed



testNormalFCOCollectionFieldPersistence4
public void testNormalFCOCollectionFieldPersistence4()(Code)
Test adding and removing elements from Collections whose members are defined as a non-PC superclass or interface



testPCFieldAccess
public void testPCFieldAccess() throws Exception(Code)
Test that transient fields are accessible both inside and outside transactiosns



testQueryPM
public void testQueryPM()(Code)
Tests that the persistence manager used to persist an object is the same as returned by jdoGetPersistenceManager()



testStateTransitions
public void testStateTransitions() throws Exception(Code)



testTransientObjectCollections
public void testTransientObjectCollections()(Code)
Tests that objects can be added to a Collection owned by a persistent object made transient.



testUpdatePersistentFields
public void testUpdatePersistentFields() throws Exception(Code)
Simple test of transactional PC field updates



testUpdatePersistentFieldsExceptions
public void testUpdatePersistentFieldsExceptions() throws Exception(Code)
Tests attempts to update PC fields on a P-new-del or P-del PC object



Fields inherited from com.triactive.jdo.test.PersistenceTestCase
protected static PersistenceManagerFactory pmf(Code)(Java Doc)
protected static SchemaManager schemaMgr(Code)(Java Doc)
protected static String vendorID(Code)(Java Doc)

Methods inherited from com.triactive.jdo.test.PersistenceTestCase
protected void addClassesToSchema(Class[] classes)(Code)(Java Doc)
protected PersistenceManagerFactory makeNonpooledPMF()(Code)(Java Doc)
protected PersistenceManagerFactory makePooledPMF(String dsfClassName) throws Exception(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.