Students can have weird demands. They can ask you to teach them things that you’d never ever heard of before. This time I was asked by a crazy bunch to tell them something about JUnit. So I am gathering some resources here that you might find useful. By the way, JUnit is a Java framework that you can use to unit test your software. To this end, you can whether methods of a class or object work as they are supposed to according to the specifications. Here you go with the resources:
This tutorial on tutorials-point is possibly the best thing I have come across about JUnit.
JUnit Tutorial for Beginners – Learn JUnit in simple and easy steps starting from basic to advanced concepts with examples including Environment Setup, Test Framework, Basic usage, Writing a Test, Annotations, Executing Tests, Suite Test, Ignore a Test, Time Test, Exceptions Test, Parameterized Test, Using Assertion, Plug with Ant, Plug with Eclipse.
This is a very nice tutorial that tells you how to use JUnit in netbeans. This will make your life a lot more easier.
A tutorial on writing JUnit 3 and JUnit 4 tests in NetBeans IDE.
If you found an error, highlight it and press Shift + Enter or click here to inform us.