import junit.framework.*;
/** A simple test case for Person */
public class PersonTest extends TestCase {
/** JUnit test classes require this constructor */
public PersonTest(String name) {
super(name);
}
public void testNameConcat() {
Person p = new Person("Ian", "Darwin");
String f = p.getFullName();
assertEquals(f, "Ian Darwin");
}
}
|