Menu

JUnit Testing

2014-12-13
2015-02-08
  • Cassidy Hazel

    Cassidy Hazel - 2014-12-13

    Hello,

    I am finding your tutorials extremely helpful so, first and foremost, many thanks.

    I have got to lesson 4 and when I try to add JUnit 3 to the libraries Eclipse doesn't bring up any errors but also doesn't do anything. I have looked into adding it by hand and it just comes up with a wizard that doesn't let me give me any settings that I can change or any way to move forward. My PersonTest is still full of errors and there seems to be no way of adding JUnit 3 to my TotalBeginner project. Do you know any reasons why this isn't working and and any way to fix it?

    Many thanks,

    Cassidy

     
    • Dave H

      Dave H - 2014-12-14

      I had the same problem. What worked for me was to add JUnit4 instead of 3.
      I'm guessing that the tutorial is out of date in this regard.

       
    • sydney

      sydney - 2015-01-28

      I've been going through the tutorials making several JUnit tests. When you are making the JUnit test for a lesson, you are given a choice of using JUnit3 or JUnit4. If you use JUnit 3 the test classes will be the same as in the tutorial. JUnit 4 is completely different.

       
  • KSpake

    KSpake - 2015-02-08

    Yes, I just opted to use JUnit 3, even though 4 was an option, to avoid getting messed up. I'll figure out 4 at a later date.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.