Results 1 to 2 of 2

Thread: OSGi testing question - JUnit 4

  1. #1
    Join Date
    Nov 2009
    Posts
    8

    Default OSGi testing question - JUnit 4

    Why is Spring DM Testing tied to JUnit 3? Is there any reason why I can't use Junit 4?

  2. #2

    Default

    The reference guide says
    What about JUnit4/TestNG?
    While JUnit4/TestNG overcome the class inheritance problem that appears when building base JUnit
    classes, by decoupling the runner from the test through annotations, Spring DM cannot use them since it
    has to support Java 1.4.
    However, it is planned for the future to provide an optional, JVM 5-based testing extension to integrate
    the existing testing framework with the aforementioned libraries
    really offs you.

    If you do want to use Junit4, have a look at Pax-exam

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •