Skip to content

Comments

Native API Versioning in Spring Boot 4#19150

Open
saikatcse03 wants to merge 30 commits intoeugenp:masterfrom
saikatcse03:master
Open

Native API Versioning in Spring Boot 4#19150
saikatcse03 wants to merge 30 commits intoeugenp:masterfrom
saikatcse03:master

Conversation

@saikatcse03
Copy link
Contributor

@saikatcse03 saikatcse03 commented Feb 16, 2026

Implemented four API versioning strategies in the latest Spring Boot 4.0.2 version. Created a new repo for the latest versioning as other modules are of different Spring boot 3 version and 4 milestone version.

}

@Test
void givenProductExists_WhenGetProductIsCalled_WithValidMediaTypeVersion_thenReturnValidProduct() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test naming convention Baeldung uses is givenXxx_whenXxx_thenXxx (only those 3 underscores, and with camelCase elements, so this would be:

Suggested change
void givenProductExists_WhenGetProductIsCalled_WithValidMediaTypeVersion_thenReturnValidProduct() {
void givenProductExists_whenGetProductIsCalledWithHeaderVersion1_thenReturnValidProduct() {

Similar for other test names

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants