fssa-batch3 / fssa-batch3/sec_a_logesh.venkatesan__corejava_project_2
Post Module | View Post
- Dominant language
- Java
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
# Viewing Post Information Process
## User Story
As a user, I want to easily access information about posts available on the platform. When I search for a specific post, the system should display details such as the post's content, author, category, and availability status. If the post I'm looking for isn't found, the system should provide a message indicating its unavailability.
## Task
1. Implement Data Access Object (DAO) Layer.
2. Implement Service Layer.
3. Create Test Cases.
4. Ensure that the test cases are passing.
5. Write clear and concise comments in the code to explain complex logic.
## DAO
- `getPostByTitle()`: Retrieves detailed information about a post based on its title.
## Service
- `getPostByTitleService()`: Manages the retrieval of post information using the Service Layer.
## Test Cases
- `testValidGetPostByTitle()`: Tests the successful retrieval of post details.
- `testInvalidGetPostByTitle()`: Tests the scenario when the requested post isn't found.
## Estimation
Estimated time for completion: 3 hours
## Flowchart
```mermaid
graph TD
Start --> UserInitiatesPostSearch
UserInitiatesPostSearch --> SearchPostByTitle
SearchPostByTitle -->|Post Found| DisplayPostDetails
SearchPostByTitle -->|Post Not Found| NotifyPostNotFound
DisplayPostDetails --> EndDisplay
NotifyPostNotFound --> EndNotFound
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.