FileDocCategorySizeDatePackage
PersonTest.javaAPI DocExample356Sat Jan 27 21:50:34 GMT 2001None

PersonTest.java

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");
	}

}