Ticket #2 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

junit tests break with ant 1.7

Reported by: matighet Owned by: prubel
Priority: major Component: HTTPS proxy
Version: Keywords:
Cc:

Description

So far, we've been using ant 1.6.5. With ant 1.7, the following error shows up:

junittest:
    [junit] Running com.bbn.pb.CertificateTest
    [junit] Testsuite: com.bbn.pb.CertificateTest
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 5.21 sec
    [junit] Error: 
    [junit] SEC_COM_LOADING
    [junit] SECCOMPONENT LOADED
    [junit] deskey= 0: 23 92 4C 29 3D   68 E9 52 13 6B   DA CE EF DA FE   A1 AE A1 DF 89 
    [junit]  20:   08 D0 79 E3 
    [junit] 
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 5.21 sec
    [junit] ------------- Standard Error -----------------
    [junit] SEC_COM_LOADING
    [junit] SECCOMPONENT LOADED
    [junit] deskey= 0: 23 92 4C 29 3D   68 E9 52 13 6B   DA CE EF DA FE   A1 AE A1 DF 89 
    [junit]  20:   08 D0 79 E3 
    [junit] ------------- ---------------- ---------------
    [junit] 
    [junit] Testcase: testGeneration took 3.474 sec
    [junit] Testcase: testSerialNumber took 1.425 sec
    [junit] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:453)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)

Change History

Changed 5 years ago by matighet

  • owner changed from matighet to prubel

Changed 5 years ago by matighet

  • status changed from new to closed
  • resolution set to fixed

There was an extra ant.jar in jetty/ext that was in the classpath so we were running with the executable of ant 1.7 with the libraries of 1.6. Removed ant.jar from jetty and the build now runs the tests. -paul

Note: See TracTickets for help on using tickets.