fssa-batch3 / fssa-batch3/sec_a_muthuselvam.kumaravel__corejava_project_2

Booking module | Create Booking

Open
#3 2 comments 0 reactions 0 assignees View on GitHub
booking-module enhancement
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

# Create Booking Process

### User Story

As a user, I want to be able to create new booking for the shuttle. If the booking seat already exists in the shuttle, the system should display an error message indicating that the seat num already exists.

### Task

- [x] Implement Data Access Object (DAO) Layer.
- [x] Implement Service Layer.
- [x] Create JUnit Test Cases.
- [x] Ensure that the tests cases are passing.
- [ ] Write clear and concise comments in the code to explain complex logic.

### DAO:

- createBooking()

### Service:

- registerBooking()

### Junit Test:
- testRegisterBookingSuccess()
- testAlreadyExistSeatNum()

### Estimation:
- 4hrs

## Flowchart

```mermaid

graph TD;
A[Start] -->|Booking Creation| B(Validate Booking);
B -->|Invalid| C{Invalid Booking Exception};
B -->|Valid| D[Confirm Booking];
C -->|Not Available| E[Notify User];
D --> F[Payment];
F --> G[Confirmation];
E --> E|End|;

style I fill:#dfd,stroke:#333
style G fill:#fdd,stroke:#333

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the booking DAO method createBooking() and service method registerBooking(), then review testRegisterBookingSuccess() and testAlreadyExistSeatNum(). Identify the complex logic in those areas that still lacks comments; done means clear, concise comments are added and the existing JUnit tests continue to pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
Half a day
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.