Create unit tests using code to uncover errors

Assignment Help JAVA Programming
Reference no: EM133207933 , Length: 2 pages.

Assignment: Code Implemented in Java Paper

In this project, you will demonstrate your mastery of the following competency:

Create unit tests using code to uncover errors

Scenario

You are a software engineer for Grand Strand Systems, a software engineering company that focuses on developing and testing back-end services. You've been given an assignment to develop a mobile application for a customer. The customer will provide you with the requirements. Your job is to code up the application and provide unit tests to verify that it meets the customer's requirements. You will be delivering the contact, task, and appointment services. The purpose of these services is to add, update, and delete contact, task, and appointment objects within the application.

Directions

ContactService, TaskService, and AppointmentService Files

For this assignment, you will incorporate the code and unit tests that you have developed for the mobile application. First, you developed the contact service and contact object, which you completed in the Module Three milestone. Second, you developed the task service and task object, which you completed in the Module Four milestone. Last, you developed the appointment service and appointment object, which you completed in Module Five milestone. Any feedback received on these assignments should be incorporated prior to submitting the files for this project.

You have been asked to code up a mobile application for a client and provide unit tests to verify that it meets the customer's requirements. In order to do so, you must complete the following:

1) Contact Service: In the Module Three milestone, you developed the contact service. The contact service used in-memory data structures to support storing contacts (no database required). In addition, there was no UI for this assignment. You verified the contact service through JUnit tests. The contact service contained a contact object along with the contact service. The requirements were as follows:

a) Contact Class Requirements

i) 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.

ii) The contact object shall have a required firstName String field that cannot be longer than 10 characters. The firstName field shall not be null.

iii) The contact object shall have a required lastName String field that cannot be longer than 10 characters. The lastName field shall not be null.

iv) The contact object shall have a required phone String field that must be exactly 10 digits. The phone field shall not be null.

v) The contact object shall have a required address field that must be no longer than 30 characters. The address field shall not be null.

b) Contact Service Requirements

i) The contact service shall be able to add contacts with unique ID.

ii) The contact service shall be able to delete contacts per contactId.

iii) The contact service shall be able to update contact fields per contactId. The following fields are updatable:

o firstName
o lastName
o PhoneNumber
o Address

2) Task Service: In the Module Four milestone, you developed the task service. The task service used in-memory data structures to support storing tasks (no database required). In addition, there was no UI for this assignment. You verified the task service through JUnit tests. The task service contained a task object along with the task service. The requirements were as follows:

a) Task Requirements

i) The task object shall have a required unique task ID String that cannot be longer than 10 characters. The task ID shall not be null and shall not be updatable.

ii) The task object shall have a required name String field that cannot be longer than 20 characters. The name field shall not be null.

iii) The task object shall have a required description String field that cannot be longer than 50 characters. The description field shall not be null.

b) Task Service Requirements

i) The task service shall be able to add tasks with a unique ID.

ii) The task service shall be able to delete tasks per taskId.

iii) The task service shall be able to update task fields per taskId. The following fields are updatable:

o name
o description

3) Appointment Service: In the Module Five milestone, you developed the appointment service. The appointment service used in-memory data structures to support storing appointments (no database required). In addition, there was no UI for this assignment. You verified the appointment service through JUnit tests. The appointment service contained an appointment object along with the appointment service. The requirements were as follows:

a) Appointment Requirements

i) The appointment object shall have a required unique appointment ID String that cannot be longer than 10 characters. The appointment ID shall not be null and shall not be updatable.

ii) The appointment object shall have a required appointment Date field. The appointmentDate field cannot be in the past. The appointmentDate field shall not be null. Note: Use java.util.Date for the appointmentDate field and use before(new Date()) to check if the date is in the past.

iii) The appointment object shall have a required description String field that cannot be longer than 50 characters. The description field shall not be null.

b) Appointment Service Requirements

i) The appointment service shall be able to add appointments with a unique appointmentId.

ii) The appointment service shall be able to delete appointments per appointmentId.

Specifically, the following criteria must be addressed:

1. Verify the Contact class meets the requirements through JUnit tests.

2. Verify the ContactService class meets the requirement through JUnit tests.

3. Verify the Task class meets the requirement through JUnit tests.

4. Verify the TaskService class meets the requirement through JUnit tests.

5. Verify the Appointment class meets the requirement through JUnit tests.

6. Verify the AppointmentService class meets the requirement through JUnit tests.

7. Ensure the "test" coverage for the java files has 80% coverage or higher.

Reference no: EM133207933

Questions Cloud

Organizational structure of gobuy would face resistance : Organizational structure of GoBuy would face resistance. Discuss the ways that resistance to a change in organisational structure could be overcome
Why are pieces of information of managing a convention : Draft a memorandum on the five most important pieces of information of managing a convention that a non-industry person should understand about the topic.
Potential resource to transform the world energy sector : Among these unconventional resources, which one do you think has the potential to transform the world energy sector? Also, discuss what needs to be done
Discuss the causes of low levels of motivation : Discuss the causes of low levels of motivation and job satisfaction amongst the staff in GoBuy's fulfillment centers
Create unit tests using code to uncover errors : Create unit tests using code to uncover errors. The contact service shall be able to delete contacts per contactId.
Develop a hypothesis concerning the use of technology : Develop a hypothesis of your choice concerning the use of technology in education and find one journal article that will support and one article
What would the initial steps be to start planning : What are some considerations the company and HR should be aware of when making changes related to this case study
Plotting data onto a map in microsoft excel : Locate datasets available from the CDC, NIH, or another public source. Ensure your dataset includes location information. Use Microsoft Excel to plot your datas
Develop a project outline in preparation : Develop a project outline in preparation to develop and present solutions to the problems, challenges, or opportunities around recruitment and low staffing

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd