fssa-batch3 / fssa-batch3/sec_a_mohammedajmal.iqbol__corejava_project_2

Comment Module | Read Feature

Open
#10 0 comments 0 reactions 1 assignee Claimed by @Ajmal112 View on GitHub
comment-module enhancement
Dominant language
Java
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

# Comment Read Process

### User Story:

- When a user (buyer) attempts to read comments for a course with valid details, the user (buyer) will receive a list of comments that have been posted for the specific course.
- if the user (buyer) tries to access comments with invalid details, or provides an invalid courseID or userID, 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
- listComment()

### Service
- ReadComment()

### Test
TestListCommentFeature
- testListCommentSuccess()
- testListCommentFailure()

# Flowchart
```mermaid
flowchart TD
A[Start]
B[User Requests to Read Comments]
C[Validate CourseID]
D{Validation Successful?}
E[Retrieve List of Comments]
F[Display List of Comments]
G[Display Validation Error]
H[End]

A --> B
B --> C
C --> D
D -- Yes --> E
E --> F
D -- No --> G
G --> H
F --> H

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.