davidshin0302 / safetynet-alerts-backend

Backend application for the SafetyNet Alerts system developed with Spring Boot
0 stars 0 forks source link

Implement Person Repository Class: #30

Closed davidshin0302 closed 1 week ago

davidshin0302 commented 2 weeks ago

Tasks:

Create PersonRepositoryImpl in the repository package. Implement logic to read from and write to a JSON file using Jackson library methods. Ensure the repository handles edge cases like empty or malformed JSON files.

Write unit tests to verify the findAll(), findById(), save(), and deleteById() methods function as expected. Create sample data in persons.json to test with.

Acceptance Criteria:

A PersonRepositoryImpl class exists and correctly handles CRUD operations for Person objects via JSON file I/O. Methods should work as expected with test data. Unit tests should cover all repository methods.

davidshin0302 commented 2 weeks ago

refactoring is done, and now working to set up test cases.

davidshin0302 commented 1 week ago

completed implementing test cases for PersonRepository and PersonController.