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:
How To Write a JUnit Test Method
How To Write a JUnit Test Method?
✍: FYICenter.com QA Team
This interview question is to check if you know the basic rules about writing a JUnit test method:
Here is a simple JUnit test method:
import org.junit.*; // by FYICenter.com ... @Test public void testHello() { String message = "Hello World!"; Assert.assertEquals(12, message.length()); }
2008-01-22, 5512👍, 0💬
Popular Posts:
How To Build WHERE Criteria with Web Form Search Fields? - MySQL FAQs - Managing Tables and Running ...
What Is Posting? Posting is an event that writes Inserts, Updates and Deletes in the forms to the da...
How To Add Column Headers to a Table? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells I...
How to create arrays in JavaScript? We can declare an array like this var scripts = new Array(); We ...
Can you explain in brief how can we implement threading ? Private Sub Form1_Load(ByVal sender As Sys...