Welcome! Log In Create A New Profile

Advanced

Assignment 3 Junit.jar

Posted by brett 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Assignment 3 Junit.jar
May 05, 2009 06:13PM
Anyone have any luck finding the junit.jar file required for the Junit testing question in Assignment 3?
avatar Re: Assignment 3 Junit.jar
May 05, 2009 10:15PM
Actually that is a bonus of using an IDE like Eclipse or NetBeans. All these are done for you. See if you can find a JUnit 3 or 4 JAR. Look http://www.junit.org/]here[/url]. You probably already have. Really, this is one of the pains of using dated prescribed material. The world moves on. I am sure nobody will penalise you for using JUnit 4.6 in place of version 1. The instructors could at least have made up their own questions that are up to date or have given other students that do not use Java day to day some pointers.
Re: Assignment 3 Junit.jar
May 06, 2009 08:51AM
instructors? smiling bouncing smileysmiling bouncing smileysmiling bouncing smiley
avatar Re: Assignment 3 Junit.jar
May 07, 2009 08:56PM
Most of the previous versions are here (Sourceforge)

Aren't they dependent on the version of Java they were created in/for?

Which one should we be using anyway, if we were to be very careful about it?

Cobus Neethling
avatar Re: Assignment 3 Junit.jar
May 15, 2009 09:12PM
Ok, so I'm now using netbeans 6.5 smiling smiley Working like a charm!

*Edit* x2

New error...

If I have the following code in my test class
Language: Java
public static Test suite(){ return new TestSuite(QueueAsArray.class); }
when I run the test I get an error saying "no tests found in Ass3q2.QueueAsArray, junit.framework.AssertionFailedError"

If I take the code out, it runs fine and I get a passed result... the text book isn't very clear as to what the code above actually achieves?
avatar Re: Assignment 3 Junit.jar
May 16, 2009 05:03PM
Ok, JUnit 4 requires JDK 1.5 or higher so it is anything below JUnit 4.

I'm using 3.8 without hassles.

Cobus Neethling
Sorry, only registered users may post in this forum.

Click here to login