Bug 300245 - Automatic different datasource testing on server
Summary: Automatic different datasource testing on server
Status: RESOLVED FIXED
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: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2010-01-20 14:04 EST by Kevin Yuan CLA
Modified: 2022-06-09 10:25 EDT (History)
3 users (show)

See Also:


Attachments
patch for the bug (19.28 KB, patch)
2010-01-21 11:52 EST, Kevin Yuan CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2010-01-20 14:04:40 EST
Currently all JPA testing on servers only test JTA datasource, and need to manually change the test framework when testing on non-JTA datasource. Need to enhance the existing test framework in order to test different datasource (at least JTA and non-JTA DS).
Comment 1 Kevin Yuan CLA 2010-01-21 11:50:57 EST
Fix by introduce a flag named "is.JTA", also modified the JunitTestCase.java to use application managed EM when testing on nonJTA datasource.

Code reviewed by Michael O'Brien. 

Checked in trunk, revision: 6339.
Back port to 2.0.1, revision: 6343.
Comment 2 Kevin Yuan CLA 2010-01-21 11:52:04 EST
Created attachment 156817 [details]
patch for the bug
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:25:51 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink