Bug 337161 - Test implementation for test plan of "EL 2.2: Relationships between cacheable and noncacheable entities"
Summary: Test implementation for test plan of "EL 2.2: Relationships between cacheable...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks: 454799
  Show dependency tree
 
Reported: 2011-02-14 15:15 EST by Yiping Zhao CLA
Modified: 2022-06-09 10:07 EDT (History)
1 user (show)

See Also:


Attachments
patch for test implementation for test plan of "relationships between cacheable and noncacheable entities" (34.33 KB, patch)
2011-02-14 15:23 EST, Yiping Zhao CLA
no flags Details | Diff
new patch for the test implementation (35.90 KB, patch)
2011-02-14 15:59 EST, Yiping Zhao CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yiping Zhao CLA 2011-02-14 15:15:04 EST
According to described in test plan http://aseng-wiki.us.oracle.com/asengwiki/pages/viewpage.action?pageId=1326088375, I have made following changes to exsting jpa/cachebale test model and tests to implement stuff stated in the test plan:

1. persistence.xml under eclipselink.jpa.test\resource\eclipselink-annotation-model has been updated to include newly added entity CacheableRelationshipsEntity like:
<class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableRelationshipsEntity</class>

2. add new entity "CacheableRelationshipsEntity" in eclipselink.jpa.test\src\org\eclipse\persistence\testing\models\jpa\cacheable, to define OneToMany, ManyToOne, ManyToMany and ElementCollection relationships

3. modify CacheableTableCreator.jara under eclipselink.jpa.test\src\org\eclipse\persistence\testing\models\jpa\cacheable to create tables for above new entity and its related relationships

4. modify CacheableModelJunitTest.java under eclipselink.jpa.test\src\org\eclipse\persistence\testing\tests\jpa\cacheable:
(1). modify testLoadMixedCacheTree(), testIsolatedIsolation(), testProtectedIsolation(), testEmbeddableProtectedCaching(), testProtectedCaching(), testReadOnlyTree() to include OneToMany, ManyToOne, ManyToMany and ElementCollection relationships
(2). add new tests testUpdateProtectedManyToOne(), testUpdateProtectedManyToMany() and testUpdateProtectedElementCollection() to test if the protected relationship is begin merged to shared cache in these dirrerent relationships
Comment 1 Yiping Zhao CLA 2011-02-14 15:23:04 EST
Created attachment 188950 [details]
patch for test implementation for test plan of "relationships between cacheable and noncacheable entities"
Comment 2 Yiping Zhao CLA 2011-02-14 15:59:05 EST
Created attachment 188954 [details]
new patch for the test implementation
Comment 3 Yiping Zhao CLA 2011-02-14 16:00:46 EST
In this new patch, add testIsolationBeforeEarlyTxBegin() to test cache isolation after early transaction has begun.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:07:34 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink