fssa-batch3 / fssa-batch3/sec_a_mohammedajmal.iqbol__corejava_project_2
Comment Module | Delete Feature
- Dominant language
- Java
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
# Comment Delete Process
### User Story:
- When the user (buyer) tries to delete a comment using a valid commentID, the comment will be successfully removed.
- if the user (buyer) attempts to delete a comment with an invalid commentID, they will receive a message indicating that the comment details could not be found.
### Task
- [x] Implement Data Access Object (DAO) Layer.
- [x] Implement Service Layer.
- [x] Create JUnit Test Cases.
- [x] Ensure that the test cases are passing.
- [ ] Write clear and concise comments in the code to explain complex logic.
### DAO
- deleteComment()
### Service
- removeComment()
### Service Test
TestDeleteCommentFeature
- testDeleteCommentSuccess()
- testDeleteCommentFailure()
# Flowchart
```mermaid
flowchart TD
A[Start]
B[User Requests to Delete Comment]
C[Validate CommentID]
D{Validation Successful?}
E[Retrieve Comment for Deletion]
F[Display Comment Deletion Confirmation]
G[User Confirms Deletion]
H{Deletion Confirmed?}
I[Delete Comment Data]
J[Comment Deletion Successful]
K[Display Validation Error]
L[Display Deletion Error]
M[End]
A --> B
B --> C
C --> D
D -- Yes --> E
E --> F
F --> G
G --> H
H -- Yes --> I
I --> J
H -- No --> M
D -- No --> K
K --> F
I --> L
L --> M
J --> M
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.