Maven 1.x Test Plugin

Upgrade to Junit 4.0

Details

  • Type: Task Task
  • Status: Reopened Reopened
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Upgrade to Junit 4.0
JUnit 4.1 isn't (yet) available on ibiblio.

Activity

Hide
Arnaud Heritier added a comment -

Done

Show
Arnaud Heritier added a comment - Done
Hide
Arnaud Heritier added a comment -

Can't do it. It requires JDK 1.5 and we can load it dynamically

Show
Arnaud Heritier added a comment - Can't do it. It requires JDK 1.5 and we can load it dynamically
Hide
Arnaud Heritier added a comment -

To be done.....

Show
Arnaud Heritier added a comment - To be done.....
Hide
Arnaud Heritier added a comment -

It's possible to use JUnit 4.x with maven 1.x :

  • add Junit 4.X in your dependencies
  • Use the JUnit4TestAdapter in your test classes :
    /**
  • @return instance of this as Junit test case
    */
    public static junit.framework.Test suite() { return new JUnit4TestAdapter(MyTestClass.class); }
  • run maven with a jdk >= 5
Show
Arnaud Heritier added a comment - It's possible to use JUnit 4.x with maven 1.x :
  • add Junit 4.X in your dependencies
  • Use the JUnit4TestAdapter in your test classes : /**
  • @return instance of this as Junit test case */ public static junit.framework.Test suite() { return new JUnit4TestAdapter(MyTestClass.class); }
  • run maven with a jdk >= 5

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: