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 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, 6584👍, 0💬
Popular Posts:
How to create arrays in JavaScript? We can declare an array like this var scripts = new Array(); We ...
Does .NET support UNICODE and how do you know it supports? Yes .NET definitely supports UNICODE. Try...
What are the two fundamental objects in ADO.NET ? Datareader and Dataset are the two fundamental obj...
Can you have virtual functions in Java? Yes, all functions in Java are virtual by default. This is a...
How To Enter Binary Numbers in SQL Statements? - MySQL FAQs - Introduction to SQL Basics If you want...