Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] Using JUnit4 and Ant in EclipseLink ...

Doh!  Thanks, Shaun - of course, I was thinking about the
eclipselink.xxx.test projects
depending upon JUnit4, not the core projects


Shaun Smith wrote:
> 
> 
> 
> I would not expect non-test projects like eclipselink.dbws,
> eclipselink.core and eclipselink.moxy to depend on JUnit
> 4.  I'd suggest separating test infrastructure from runtime
> infrastructure into different projects so that we keep the runtime
> dependencies minimal. 
> 
>     Shaun 
> 
> Mike Norman wrote:
> As part
> of the work to merge DBWS code into EclipseLink, some IPzilla
> CQ's (specifically 
>   https://dev.eclipse.org/ipzilla/show_bug.cgi?id=1768 
> and 1755) were create to enable the use 
> of the pb4 custom JUnit4 Runner
> and Ant task.  Not only are there DBWS tests that require 
> this capability, but also new core feature tests for supporting
> non-JDBC arguments to StoredProcedures. 
>   
> This is the first time in EclipseLink that multiple components required
> some utility or library. To deal 
> with this, I propose a new 'common' project - the directory structure
> would be as follows: 
>   
>   ${eclipselink-svn-directory-root} 
>     +---branches 
>     \---trunk 
>         |   about.txt 
>         |   ... 
>         |   
>  (new)  +---common 
>    -    |   \---eclipselink.common 
>    -    |   |   |   .classpath 
>    -    |   |   |   .project 
>    -    |   |   |   
>    -    |   |   +---lib 
>    -    |   |   |       ant.jar                          (CQ 1768) 
>    -    |   |   |       junit4-ext-pb4.jar               (CQ 1755) 
>    -    |   |   |       ${other_commonly_used}.jar       (future CQ) 
>    -    |   |   \---pb4 
>    (new)  |   |       \--- ... 
>  (old)  +---dbws 
>         |   +---eclipselink.dbws 
>         |   |   |   .classpath 
>         |   |   |   .project 
>         |   |   |   
>         |   |   \---src 
>         |   |       \---org 
>         |   |           \---eclipse 
>         |   |               \---persistence 
>         |   |                   +---dbws 
>         |   |                   |       ... 
>         |    ... 
>  (old)  +---foundation 
>         |   +---eclipselink.core 
>         |   |   |   .classpath 
>         |   |   |   .project 
>         |   |   |   
>         |   |   \---src 
>         |   |       \--- ... 
>   
>   
> From a developer's view inside of an Eclipse IDE environment, the main
> projects (such as eclipselink.dbws,
>   eclipselink.core and 
>   eclipselink.moxy) depend apriori
> upon eclipselink.common. The
> other change will be relying upon version 4 of the JUnit library - this 
> should not affect any code as the old JUnit 3.8.x APIs are preserved in
> JUnit4. 
> _______________________________________________
> eclipselink-dev mailing list
> eclipselink-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/Using-JUnit4-and-Ant-in-EclipseLink-...-tf4549746.html#a12984757
Sent from the EclipseLink - Dev mailing list archive at Nabble.com.



Back to the top