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 ContactC "John", "Doe", Main St;
assertEqualsC contact.getContactId;
assertEqualsJohn contact.getFirstName;
assertEqualsDoe contact.getLastName;
assertEquals contact.getPhone;
assertEquals 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
