Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
Why Not Just Use System.out.println() for Unit Testing?
Why Not Just Use System.out.println() for Unit Testing?
✍: FYICenter.com QA Team
Inserting debug statements into code is a low-tech method for debugging it. It usually requires that output be scanned manually every time the program is run to ensure that the code is doing what's expected.
It generally takes less time in the long run to codify expectations in the form of an automated JUnit test that retains its value over time. If it's difficult to write a test to assert expectations, the tests may be telling you that shorter and more cohesive methods would improve your design.
2008-02-12, 5476👍, 0💬
Popular Posts:
How To Create an Array in PL/SQL? - Oracle DBA FAQ - Introduction to PL/SQL If you want create an ar...
What is thread? A thread is an independent path of execution in a system.
What is Traceability Matrix? Traceability Matrix is one of the document will prepare by QA.To make s...
1. The basics first, please define the web in simple language? How is it connected with internet? Wh...
What is the sequence of UML diagrams in project? First let me say some fact about this question, you...