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 Write a JUnit Test Method
How To Write a JUnit Test Method?
✍: FYICenter.com QA Team
This interview question is to check if you know the basic rules about writing a JUnit test method:
Here is a simple JUnit test method:
import org.junit.*;
// by FYICenter.com
...
@Test public void testHello() {
String message = "Hello World!";
Assert.assertEquals(12, message.length());
}
2008-01-22, 6755👍, 0💬
Popular Posts:
What is the quickest sorting method to use? The answer depends on what you mean by quickest. For mos...
How to reduce the final size of an executable file? Size of the final execuatable can be reduced usi...
What is test metrics? Test metrics accomplish in analyzing the current level of maturity in testing ...
What is the benefit of using an enum rather than a #define constant? The use of an enumeration const...
Is XHTML Element Name Case Sensitive? - XHTML Tutorials - Introduction To Tag and Attribute Syntax Y...