12345678910111213141516171819202122232425262728293031323334353637383940 |
-
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- /**
- * The test class PhoneBookTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class PhoneBookTest
- {
- /**
- * Default constructor for test class PhoneBookTest
- */
- public PhoneBookTest()
- {
- }
-
- /**
- * Sets up the test fixture.
- *
- * Called before every test case method.
- */
- @Before
- public void setUp()
- {
- }
-
- @Test
- public void addTest() {
- PhoneBook phone = new PhoneBook();
- phone.add("John", "215-658-1490");
- assertEquals("215-658-1490", phone.lookup("John"));
- }
- }
|