Unit testing is an idea to test project unit by unit, part by part.
Debugging isn't part of unit testing but part of testing step by step.
Unit tests ideally should cover all corner cases plus some random inputs for each project's unit to check whether it works properly.
JUnit allows to assure that methods return expected results and throw expected exceptions. It's is integrated with Eclipse to make the whole testing process a bit easier. Assert() methods throw an exception marking given test as 'failed' when the result of the tested method is different than expected.
JUnit can be learned any time depending on your requirements. If you are good with the concepts of the language, then you can start with it else try to get deeper understanding of the things.
Comments
Post a Comment