123456789101112131415161718192021222324252627282930313233343536 |
-
-
- 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
- */
- @Test
- public void testConstructor()
- {
- PhoneBook phoneBook = new PhoneBook();
- }
- @Test
- public void testAddingPhoneNumber(){
- PhoneBook phoneBook = new PhoneBook();
- String name = "Khalil";
- String phoneNumber = "215-555-555";
- String expected = name + phoneNumber;
-
- phoneBook.AddInput(name,phoneNumber);
-
- }
-
- }
|