You can generate a new JUnit test case for an interface
that declares annotated methods, or you can update an existing JUnit
test case for such an interface.
About this task
You can generate a test method for each annotated method
that is in the interface. The name of each test method is
testindex_Name-of-annotated-method(),
where
index is the index of the method in the interface.
For example, if getEmployee() is the third method that the interface
declares, the name of the corresponding test method is
test3_getEmployee().
If
an annotated method takes parameters, the test method contains comments
to indicate that one must assign a value to the parameters.
Finally,
test methods contain no code for processing results.
Here is
an example test method:
@Test
public void test2_getEmployee() throws Exception {
String empno = null;
// TODO: empno = String value
// Execute SQL statement
Employee bean = data.getEmployee(empno);
}