Activities
Activities
Create a Profile that will have the following properties: profileId, name, password, dob, phone.
Use the layered architecture and in the service layer you must be able to perform following operations
1. save
2. delete
Write the test cases for save, delete and also for not saving the duplicate profile.
Design the classes & interfaces accordingly, write the code such that it must be loosely coupled apply
appropriate design patterns so that the client must able to get the multiple implementation of the
service layer without changing the code
Activity 2
To the existing Profile activity provide a login method in the service layer which must accept profileId &
password on a valid profileId and password it must return the Profile else throw a checked exception
Ensure you have a test case to pass profileId and password that expects Profile on those inputs or assert
the error messages you are expecting when profileId or password is wrong.