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, 9918👍, 0💬
Popular Posts:
What will be printed as the result of the operation below: main() { char s1[]="Cisco"; char s2[]="sy...
Which bit wise operator is suitable for turning off a particular bit in a number? The bitwise AND op...
In C#, what is a weak reference? Generally, when you talk about a reference to an object in .NET (an...
How To Control White Spaces between Table Cells? - XHTML 1.0 Tutorials - Understanding Tables and Ta...
Advantages of a macro over a function? Macro gets to see the Compilation environment, so it can expa...