Bug 302602 - Junit jar for JPA WDF tests is better to use the same name as normal JPA test without version appended
Summary: Junit jar for JPA WDF tests is better to use the same name as normal JPA test...
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: Martin Grebac CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2010-02-11 11:49 EST by Kevin Yuan CLA
Modified: 2022-06-09 10:03 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2010-02-11 11:49:30 EST
In build.properties file under /trunk/jpa/eclipselink.jpa.wdf.test directory, "junit.lib" was defined like "junit.lib=../../../extension.lib.external/junit-4.5.jar". Usually just has junit.jar under extension.lib.external directory, and we always keep update this junit.jar to be the latest version.
It's better to change use junit.jar instead of unit-4.5.jar in build.properties.
Comment 1 Adrian Goerler CLA 2010-02-11 12:17:44 EST
The proposed change is fine with me.
Comment 2 Kevin Yuan CLA 2010-02-11 13:09:14 EST
Code reviewed by Adrian Görler. 
Checked in trunk, revision: 6587.
Comment 3 Eric Gwin CLA 2010-02-11 13:19:58 EST
The primary reason the process used junit.jar rather than junit4.5.jar was that junit did not provide versioned jars, as a result our process evolved to not make use of them. However, there are instances where this is a pain. 

Now that junit has changed thier standard to include version info in the jar name, It was proposed and accepted that we adopt the versioned name as standard. We do have a built-in mechanism to bypass this for processes that will require a junit.jar (no version), such as oracle-side testing. That is to use the user.home/build.properties file to define junit.lib to <path>/junit.jar ( or <path>/foo.jar if you'd like ;) ). However the default should remain the versioned file.
Comment 4 Kevin Yuan CLA 2010-07-30 14:35:21 EDT
I totally agree with Eric's suggestion, and that will force user to use the latest or specific version of junit jar to run test and developing. 
But I have found there are lots of properties file use non-version junit.jar in junit.lib path, it's hard to maintenance when the version of junit.jar have changed (we need to change all properties file with "junit.lib" setting).  
If there is junit.lib setting in the properties file in trunk level, and all other properties files just call junit.lib defined in trunk level, we only need to update one properties file when new version junit.jar is coming.
The above is just my thinking, probably Eric have better idea, and this should belong to building enhancement, so I assigned it to Eric.
Comment 5 Martin Grebac CLA 2015-04-18 14:13:45 EDT
AFAICT there is this higher level problem of having one setting for all suites remaining, but that is to be solved in a different but.
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:03:12 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink