Bug 391154

Summary: test implementation for TopLink Metadata Caching Test Spec - 611621
Product: z_Archived Reporter: Yiping Zhao <yiping.zhao>
Component: EclipselinkAssignee: Project Inbox <eclipselink.orm-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: test
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Yiping Zhao CLA 2012-10-04 15:24:55 EDT
The changes are:

1. test.properties
     introduce two new properties "run.metadata.cache.test.suite" and "uuse.project.cache", "run.metadata.cache.test.suite" is used in server test suite to invoke MetadataCachingTestSuite to create project cache file and used in antbuild.xml store the file,  "use.project.cache" is used in antbuild.xml to modify persistence.xml to add project cache related persistence properties like:
<property name="eclipselink.project-cache" value="java-serialization"/>
<property name="eclipselink.project-cache.java-serialization.file-location" value="MetadataCachingTestProject.file"/>

2. antbuild.xml
    new targets "store-project-cache-file", "add-project-cache-properties" and "server-test-lrg-project-cache" are added. The models in "server-test-lrg-project-cache" will only include four models as we discussed in Monday's meeting when check in to trunk, that are :
   server-test-advanced
   server-test-advanced-multitenantEMF
   server-test-advanced-multitenant123
   server-test-extensibility

 Note: on Monday's QA-Dev meeting, Peter said we don't need to automatically run all lrg test models for testing this feature, he picked several models that are important to this feature, which are above 4 models and composite and partition models. Composite and partition models are now only running on WebLogic, I will manually test it later.  I have run all the models yesterday, and found several test failures, and entered bugs 390483, 390486, 390488, 390489. "server-test-extensibility" has been temporarily commented out once the bug is fixed

3. test source code changes for invoking MetadataCachingTestSuite

    eclipselink.jpa.test\src\org\eclipse\persistence\testing\tests\jpa\advanced\MetadataCachingTestSuite.java
    eclipselink.jpa.test\src\org\eclipse\persistence\testing\tests\jpa\advanced\AdvacnedServerTestSuite.java
    eclipselink.jpa.test\src\org\eclipse\persistence\testing\tests\jpa\advanced\multitenant\AdvancedMultiTenant123JunitTest.java
    eclipselink.jpa.test\src\org\eclipse\persistence\testing\tests\jpa\advanced\multitenant\AdvancedMultiTenantSharedEMFJunitTest.java
    eclipselink.jpa.test\src\org\eclipse\persistence\testing\tests\jpa\extensibility\ExtensibilityTest.java
Comment 1 Yiping Zhao CLA 2012-10-04 15:31:50 EDT
changes have been checked in 2.5 as SHA1 ID: b27780efcd*****, code is reviewed by Chris and Edwin.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:05:48 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink