Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Wirte a Simple JUnit Test Class
How To Wirte a Simple JUnit Test Class?
✍: FYICenter.com QA Team
This is a common test in a job interview. You should be able to write this simple test class with one test method:
import org.junit.*; // by FYICenter.com public class HelloTest { @Test public void testHello() { String message = "Hello World!"; Assert.assertEquals(12, message.length()); } }
2008-01-11, 8791👍, 0💬
Popular Posts:
What's the difference between J2SDK 1.5 and J2SDK 5.0? There is no difference, Sun Microsystems just...
How To Decrement Dates by 1? - MySQL FAQs - Introduction to SQL Date and Time Handling If you have a...
How do you target a specific frame from a hyperlink? Include the name of the frame in the target att...
How To Change the Password of Another User Account? - MySQL FAQs - Managing User Accounts and Access...
How To List All Values of Submitted Fields? - PHP Script Tips - Processing Web Forms If you want lis...