Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-381

JUnit tests on Groovy project fail with NoClassDefFoundError: junit/framework/TestCase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.5
    • 1.4
    • Test frameworks
    • None
    • Buildr 1.3.5 (JRuby 1.4.0)

    Description

      unit tests can not be compiled:

      ERROR – : Error instantiating 'groovyc' task: java.lang.NoClassDefFoundError: junit/framework/TestCase
      Buildr aborted!
      java.lang.NoClassDefFoundError: junit/framework/TestCase

      WORKAROUND:

      put this at the top of the buildfile:

      Java.classpath << "junit:junit:jar:4.4"

      Attachments

        1. groovy.zip
          87 kB
          peter schröder
        2. BUILDR-381.txt
          2 kB
          Antoine Toulme

        Activity

          People

            boisvert Alex Boisvert
            phoet peter schröder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: