Results 1 to 2 of 2

Thread: Junit Problem

  1. #1
    Advanced Member
    Join Date
    Aug 2006
    Pune, India

    Junit Problem

    Hi All

    I was just trying JUnit4.4 and i am not able to execute the command. I tried various options but all headed to a dead end

    I am facing couple of problems. I have attached one screen shot along with and the other thing is i am not able to execute the following command

    java junit.textui.TestRunner junit.samples.AllTests
    Attached Files Attached Files

  2. #2

    Re: Junit Problem

    Here are some things to check.
    1. Do you have your classpath set correctly? JUnit FAQ
    2. Are you calling out the class name properly? Remember capitalization is important.

    I noticed that you used
    java junit.textui.testrunner
    instead of
    java junit.textui.TestRunner
    Note the capitalization difference.

    Finally, if your classpath is correct you might want to try the following instead of junit.textui.TestRunner:
    java org.junit.runner.JUnitCore junit.samples.AllTests



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 05:33 PM.

Copyright BetaSoft Inc.