UP Computer Science Interns' Blog

May 8, 2010

JUnit Testing

Filed under: azeus_200727018 — edgarfelizmenio @ 7:17 pm
Tags: , , ,

Before integrating our project, we first tested our module by using the JUnit package. The JUnit is one of the frameworks that can be used in whitebox testing, but you can use other xUnit frameworks as well.

In testing your code, whether it is a large project or not, it would be better to use one of the xUnit frameworks (and do the testing by using the whitebox method). Testing your code by printing the values of your variables at the output streams (stdout, stderr, etc.) may be easier to do, but it would be tedious to clean and it may cause serious errors sometimes.


Create a free website or blog at WordPress.com.

%d bloggers like this: