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, 9367👍, 0💬
Popular Posts:
interview.FYIcenter.com offers a collections of interview questions and answers for software and Web...
How To Use Subqueries with the IN Operator? - MySQL FAQs - SQL SELECT Statements with JOIN and Subqu...
How To Delete a User Account? - Oracle DBA FAQ - Managing Oracle User Accounts, Schema and Privilege...
How can I construct preprocessor if expressions which compare strings? You can't do it directly; pre...
What is DAR (Decision Analysis and Resolution) ? Decision Analysis and Resolution is to analyze poss...