Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The appointment service uses in-memory data structures to support storing appointments (no database required). In addition, there is no user interface for this milestone. You

The appointment service uses in-memory data structures to support storing appointments (no database required). In addition, there is no user interface for this milestone. You will verify the appointment service through JUnit tests. The appointment service contains an appointment object along with the appointment service. The requirements are outlined below.

Appointment Class Requirements

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.
The appointment object shall have a required appointment Date field. The appointment Date field cannot be in the past. The appointment Date 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.
The appointment object shall have a required description String field that cannot be longer than 50 characters. The description field shall not be null.
Appointment Service Requirements

The appointment service shall be able to add appointments with a unique appointment ID.
The appointment service shall be able to delete appointments per appointment ID.
Pls follow the instructions above, for example pls use the use before(new Date()) and create the method in appointment class requirements, make sure the ID is unique not null and not updateable.

pls create an Appointment Class, AppointmentService Class, AppointementTest Class and AppointmentServiceTest Class.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Basic Marketing Research

Authors: Tom J. Brown, Tracy A. Suter, Gilbert A. Churchill

8th edition

1133188540, 978-1111525293, 1111525293, 978-1305178571, 1305178572, 978-1133188544

More Books

Students also viewed these Programming questions