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 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, 8450👍, 0💬
Popular Posts:
What are some uses of Intranets & Extranets? An "intranet" is the generic term for a collect...
What Is C Language? The C programming language is a standardized programming language developed in t...
What metrics will you look at in order to see the project is moving successfully? Most metric sets d...
What Are Named Parameters? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and Functions Name...
How To Avoid the Undefined Index Error? - PHP Script Tips - Processing Web Forms If you don't want y...