Results 1 to 2 of 2

Thread: Petclinic example and junit tests

  1. #1
    Join Date
    Nov 2004
    Posts
    159

    Default 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. #2

    Default 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.

    HTH

Posting Permissions

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