Question: public class ContactTest { @Test public void testContactCreation ( ) { Contact contact = new Contact ( C 1 , John, Doe,

public class ContactTest {
@Test
public void testContactCreation(){
Contact contact = new Contact("C1", "John", "Doe", "1234567890","123 Main St");
assertEquals("C1", contact.getContactId());
assertEquals("John", contact.getFirstName());
assertEquals("Doe", contact.getLastName());
assertEquals("1234567890", contact.getPhone());
assertEquals("123 Main St", contact.getAddress());
}
}
This is good for verifying that parameters are within the size limits specified. But how about for larger sizes? Does your code reject sizes greater than what is specified in the requirements? How about NULL, which is also mentioned in the assignment? How about the boundary value between acceptable and unacceptable values which will verify that = is included in your conditional?
Screenshot of test coverage not provided.
public class ContactTest { @Test public void

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!