Results 1 to 3 of 3
  1. #1
    moamen is offline Member
    Join Date
    Sep 2009
    Posts
    15
    Rep Power
    0

    Question junit test problem

    i'm trying to make a junit test for a program but i have a problem..
    after i make the junit class.

    the eclipse cannot resolve the import junit.framework.TestCase;

    and also TestCase says cannot be resolved

    i thought the problem is from the JDK but i uninstalled it and reinstalled it but nothing changed....

    so please help..
    thanx in advace....

  2. #2
    moamen is offline Member
    Join Date
    Sep 2009
    Posts
    15
    Rep Power
    0

    Default

    i realized my problem and it is that the junit library is missing....:S

    so if any one could kindly help me as i really really need to make it....
    my trials to solve the problem:
    1- reinstalling the jdk several times with several editions( Note that my OS is windos 7 64-bits )
    2- installing the junit library ... but i don't know where to put it .. so i tried to put ot in the jdk but no effect..

    any help?....

    thanx in advance

  3. #3
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by moamen View Post
    2- installing the junit library ... but i don't know where to put it .. so i tried to put ot in the jdk but no effect..

    in eclipse the junit library should be in ..\eclipse\plugins\org.junitVERSION

    normally a use the junit 3, because with junit 4 the syntax of the testcases differt. copy your junit library in the above folder and retry. let me know.

Similar Threads

  1. Replies: 2
    Last Post: 12-31-2009, 01:45 PM
  2. Replies: 1
    Last Post: 08-03-2009, 06:31 PM
  3. JUnit Test Help!
    By pharo in forum New To Java
    Replies: 0
    Last Post: 04-10-2009, 06:15 PM
  4. Junit test
    By alice in forum New To Java
    Replies: 1
    Last Post: 06-14-2008, 02:24 AM

Posting Permissions

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