fssa-batch3 / fssa-batch3/sec_a_mohammedajmal.iqbol__corejava_project_2
Comment Module | Update Feature
- Dominant language
- Java
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
# Comment Update Process
### User Story:
- When the user (buyer) attempts to update a comment using a valid commentID, they will be able to modify the content of the comment successfully.
- if the user (buyer) tries to update a comment with an invalid commentID, they will receive a message stating 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
- updateComment()
### Service
- editComment()
### Test
TestUpdateCommentFeature
- testUpdateCommentSuccess()
- testUpdateCommentFailure()
# Flowchart
```mermaid
flowchart TD
A[Start]
B[User Requests to Update Comment]
C[Validate CommentID]
D{Validation Successful?}
E[Retrieve Comment for Update]
F[Display Comment Update Form]
G[User Provides Updated Details]
H[Validate Updated Input]
I{Validation Successful?}
J[Update Comment Data]
K[Comment Update Successful]
L[Display Validation Error]
M[Display Update Error]
N[End]
A --> B
B --> C
C --> D
D -- Yes --> E
E --> F
F --> G
G --> H
H --> I
I -- Yes --> J
J --> K
I -- No --> L
L --> F
D -- No --> M
M --> N
K --> N
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.