[ 
https://issues.apache.org/jira/browse/RAT-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13157734#comment-13157734
 ] 

Hugo Hirsch commented on RAT-104:
---------------------------------

When I try to run a JUnit4-test (with static imports) with the current pom I 
get:
{code}
 Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.1:testCompile 
(default-testCompile) on project apache-rat-core: Compilation failure: 
Compilation failure:
[ERROR] 
/home/hirsch/Documents/workspace/rat-plugin/apache-rat-core/src/test/java/org/apache/rat/analysis/license/GPL3LicenseTest.java:[7,7]
 error: static import declarations are not supported in -source 1.4
[ERROR] 
[ERROR] (use -source 5 or higher to enable static import declarations)
{code}

Thus the code level needs to be raised to 1.5.

What are the objections to update to Java5 at all?

Apart from static imports there are other nice things that could be added :-)


                
> Using jUnit4 annotation based tests instead of junit3 - migration from junit 
> 3.8.2 to current junit 4.10
> --------------------------------------------------------------------------------------------------------
>
>                 Key: RAT-104
>                 URL: https://issues.apache.org/jira/browse/RAT-104
>             Project: RAT
>          Issue Type: Improvement
>          Components: maven
>    Affects Versions: 0.9
>            Reporter: Hugo Hirsch
>              Labels: maven
>         Attachments: 
> RAT104patchedPomXmlWithJunit410AndVersionPropertyValue_r1205166.txt
>
>
> I'd like to migrate all tests from JUnit3 to annotation based JUnit4 tests - 
> in order to do so the pom's need to be adapted.
> Any objections?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to