I am trying to Run a Test on the Session Factory that i have created. The JUnit runs fine using Eclipse, but with the ANT Build iteslf, it throws the below error
Code:
[junit] Running project.data.utils.HibernateSessionFactoryTest
[junit] java.lang.NullPointerException
[junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.formatOutput(XMLJUnitResultFormatter.java:253)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.setSystemOutput(XMLJUnitResultFormatter.java:92)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.sendOutAndErr(JUnitTestRunner.java:435)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:319)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
[junit] Exception in thread "main"
[junit] Test project.data.utils.HibernateSessionFactoryTest FAILED
I believe its not the JUnit, so it only leave ANT or Cobertura doing somethat the Hibernate doesn't like (or the otherway around).
Has anyone come across this issue ?