Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
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, 9713👍, 0💬
Popular Posts:
Can you explain steps in function points? Below are the steps in function points: >First Count ILF, ...
How To Specify Two Background Images on a Page? - CSS Tutorials - Page Layout and Background Image D...
What is DAR (Decision Analysis and Resolution) ? Decision Analysis and Resolution is to analyze poss...
What is the version information in XML? “version” tag shows which version of XML is used.
How Many Tags Are Defined in HTML 4.01? There are 77 tags defined in HTML 4.01: a abbr acronym addre...