JUnit Demystified
If you were to go to http://www.junit.org/ and read how to do this on your own,
you might be quickly overwhelmed.
So, here it is tailored to your
average(that's I!) AP teacher.
This is a
how-to, not a why or a complete explanation.
It is meant to be simple enough
for you to mimic(in less than 10 minutes)
and tease you to go look into
more(but there isn't much more - it's simple).
So, let's get right to what a JUnit test looks like and learn by example/doing:
Here is the code if you want to run the example below (SomeClass.java, SomeClassTest.java)
The only thing you need besides the code is the junit.jar file which you get from the download section at http://www.junit.org/. Just make sure your environment can "see" it just as you would any other .jar file.
m computer science wittry)