Results 1 to 2 of 2
  1. #1
    Nermz is offline Member
    Join Date
    Aug 2015
    Rep Power

    Default Problem with JUnit

    Whenever I create a new JUnit Test Case it generates like this:

    Java Code:
    import junit.framework.TestCase;
    public class Test extends TestCase {
    But this isn't correct. There isn't even an @Test generated, and when I put it in myself I get a type mismatch error (cannot convert from Test to annotation). Any help.

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Northern Virginia, United States
    Rep Power

    Default Re: Problem with JUnit

    Not certain I can help but you haven't explained what tool you are using to generate the test case? I presume it is some IDE.

    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Problem with JUNIT
    By peliasrojo in forum New To Java
    Replies: 3
    Last Post: 04-11-2014, 01:58 PM
  2. problem with JUnit test
    By exltus in forum Advanced Java
    Replies: 12
    Last Post: 12-19-2011, 07:49 PM
  3. JUnit problem
    By SeanC in forum New To Java
    Replies: 0
    Last Post: 01-13-2011, 01:11 AM
  4. JUnit 4 / JUNIT_HOME Problem
    By albertkao in forum Eclipse
    Replies: 0
    Last Post: 11-22-2010, 09:43 PM
  5. junit test problem
    By moamen in forum Eclipse
    Replies: 2
    Last Post: 03-14-2010, 09:41 PM

Tags for this Thread

Posting Permissions

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