JUnit Test, a question....?
Hello,
I'm new to Java and i am currently working on the tutorial's that came with the NetBeans IDE 5.0. Now the problem is on the 'NetBeans IDE 5.0 Quick Start Guide' under the module of creating a JUnit Test the step explain's about this process (see below)
"In LibClassTest.java, delete the body of the testAcrostic method and type or paste in the following:"
System.err.println("Running testAcrostic...");
String result = LibClass.acrostic(new String[]
{"fnord","polly","tropism"});
assertEquals("Correct value","foo", result);
Now when it mentions deleting the body, at which starting to end point does it want to be deleted, i have tried a few combinations but get errors upon testing the 'MyLib' node. As a rough guess is this the body i should remove
publicvoid testAcrostic(){
System.out.println("acrostic");
String[] args =null;
String expResult ="";
String result = LibClass.acrostic(args);
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
Thanks..........
- Kev

