Access Millions of academic & study documents

3 2 milestone contact service

Content type
User Generated
School
Harward University
Showing Page:
1/15
3-2 Milestone Contact Service
Page | 1
3-2 Milestone Contact Service
Overview
As you have learned in Modules One and Two, various types of software testing can be
employed for a given situation. For this assignment, you will be creating unit tests using
code to uncover errors for a mobile application. You will develop the contact service
and contact object.
Prompt
For Project One, which is due in Module Six, you are asked to develop a mobile
application for a customer. The customer will provide you with the requirements. Your
job is to code the application and provide unit tests to verify that the application meets
the customer’s requirements. For this milestone, you will focus on delivering the
contact services. The purpose of these services is to add, update, and delete contact
objects within the application.
The contact service uses in-memory data structures to support storing contacts (no
database required). In addition, there is no user interface for this milestone. You will
verify the contact service through JUnit tests. The contact service contains a contact
object along with the contact service. The requirements are outlined below.
Contact Class Requirements
The contact object shall have a required unique contact ID string that cannot be
longer than 10 characters. The contact ID shall not be null and shall not be
updatable.
The contact object shall have a required first Name String field that cannot be
longer than 10 characters. The first Name field shall not be null.
The contact object shall have a required last Name String field that cannot be
longer than 10 characters. The last Name field shall not be null.
The contact object shall have a required phone String field that must be exactly
10 digits. The phone field shall not be null.
The contact object shall have a required address field that must be no longer than
30 characters. The address field shall not be null.
Contact Service Requirements
The contact service shall be able to add contacts with a unique ID.
The contact service shall be able to delete contacts per contact ID.
The contact service shall be able to update contact fields per contact ID. The
following fields are updatable:

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/15
3-2 Milestone Contact Service
Page | 2
o first Name
o last Name
Guidelines for Submission
To complete this project, you must submit a Contact Service zipped
folder containing the following deliverables:
Contact.java
ContactService.java
ContactTest.java
ContactServiceTest.java
Contact Class Requirements
The contact object shall have a required unique contact ID string that cannot be
longer than 10 characters. The contact ID shall not be null and shall not be
updatable.
The contact object shall have a required first Name String field that cannot be
longer than 10 characters. The first Name field shall not be null.
The contact object shall have a required last Name String field that cannot be
longer than 10 characters. The last Name field shall not be null.
The contact object shall have a required phone String field that must be exactly
10 digits. The phone field shall not be null.
The contact object shall have a required address field that must be no longer than
30 characters. The address field shall not be null.
Solution:
Public class ContactServiceTest {
Protected String contact ID, firstNameTest, lastNameTest, phoneNumberTest,
Address Test;
protected String tooLongContactId, tooLongFirstName, tooLongLastName,
TooLongPhoneNumber, tooShortPhoneNumber, tooLongAddress;

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/15

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 15 pages?
Access Now
Unformatted Attachment Preview
Page | 1 3-2 Milestone Contact Service Overview As you have learned in Modules One and Two, various types of software testing can be employed for a given situation. For this assignment, you will be creating unit tests using code to uncover errors for a mobile application. You will develop the contact service and contact object. Prompt For Project One, which is due in Module Six, you are asked to develop a mobile application for a customer. The customer will provide you with the requirements. Your job is to code the application and provide unit tests to verify that the application meets the customer’s requirements. For this milestone, you will focus on delivering the contact services. The purpose of these services is to add, update, and delete contact objects within the application. The contact service uses in-memory data structures to support storing contacts (no database required). In addition, there is no user interface for this milestone. You will verify the contact service through JUnit tests. The contact service contains a contact object along with the contact service. The requirements are outlined below. Contact Class Requirements • • • • • The contact object shall have a required unique contact ID string that cannot be longer than 10 characters. The contact ID shall not be null and shall not be updatable. The contact object shall have a required first Name String field that cannot be longer than 10 characters. The first Name field shall not be null. The ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4