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, 6731👍, 0💬
Popular Posts:
Can a variable be both const and volatile? Yes. The const modifier means that this code cannot chang...
What is difference between SITP and UTP in testing ? UTP (Unit Test Plan) are done at smallest unit ...
Can Two Forms Be Nested? - XHTML 1.0 Tutorials - Understanding Forms and Input Fields Can two forms ...
Can Sub Procedure/Function Be Called Recursively? - Oracle DBA FAQ - Creating Your Own PL/SQL Proced...
What does a well-written Object Oriented program look like? A well-written object oriented program e...