Announcement Announcement Module
No announcement yet.
Petclinic example and junit tests Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Petclinic example and junit tests

    I wrote a similar prototype spring application to understand spring features. It compiled fine and deployed it in JBoss. I also wrote some junit test cases for my POJOs. I'm using Eclipse IDE. I wrote an task just like the one in 'petclinic' example which uses 'junit' task to run the junit tests and generate reports. When i tried to run this task, i got the error message that it can't find the task 'junit'.

    It would be great if someone could let me know where is this 'junit' task defined. Do i need to include any jar file to use this task?

    I greatly appreciate any input regarding this problem

  • #2
    JUnit jar in classpath

    Do you have junit jar in your system classpath or ANT_HOME/lib directory? The simplest and preferable thing would be to copy the junit jar into your ANT_HOME/lib directory.