To use these tests, just use Git and clone them into the directory you have your project.
You can do this using:
git clone https://gist.github.com/7539406.git tests
If you compile things from the command line and have ant installed: http://ant.apache.org/, you only have to modify a few lines to make it work.
-
First, modify the property below with the name
src.dir. It should point to the directory that your package lives in. -
Open up
TestRunner.javafile and edit the return line of the methodnewInstance. The class that is instantiated should point to your implementation of IGraph. -
Now you should just be able to run
ant teston the command line.
This ant build.xml file contains a few targets:
ant initant buildant build-testant testant clean
More than likely you'll only have to run clean and test.
Feel free to Fork this Gist and make changes. Let me know when/if you do and I'll add them to the existing tests.