{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

DenizenTest - many"testSomething" methods in this...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import junit.framework.TestCase; i /** * A JUnit test case class. * Every method starting with the word "test" will be called when running * the test with JUnit. */ public class DenizenTest extends TestCase { /** * A test method. * (Replace "X" with a name describing the test. You may write as
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: * many "testSomething" methods in this class as you wish, and each * one will be called when running JUnit over this class.) */ public void testName() { Denizen bob = new Denizen("Bob", new Room(""), 100, 50); assertTrue(bob.name().equals("Bob")); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online