Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: broken extension #38

Merged
merged 13 commits into from
Dec 1, 2024
Merged

fix: broken extension #38

merged 13 commits into from
Dec 1, 2024

Conversation

Nahuel92
Copy link
Owner

@Nahuel92 Nahuel92 commented Nov 30, 2024

MR to address #37

Changes

  • Created @MicronautWireMockTest, a new annotation that enhances @MicronautTest with automatic WireMock server management
  • Added tests to verify that dependency injection capabilities work as expected

Breaking changes

  • Removed @EnableWireMock annotation

Migration steps

Users need to make the following changes on their existing WireMock tests:
- Remove @MicronautTest
- Replace @EnableWireMock with @MicronautWireMockTest

Important

If you use both @MicronautTest and @MicronautWireMockTest, you'll get an error message

Signed-off-by: Nahuel Rodriguez <12597182+Nahuel92@users.noreply.github.com>
Signed-off-by: Nahuel Rodriguez <12597182+Nahuel92@users.noreply.github.com>
Signed-off-by: Nahuel Rodriguez <12597182+Nahuel92@users.noreply.github.com>
Signed-off-by: Nahuel Rodriguez <12597182+Nahuel92@users.noreply.github.com>
Signed-off-by: Nahuel Rodriguez <12597182+Nahuel92@users.noreply.github.com>
# Conflicts:
#	README.md
#	example/pom.xml
#	pom.xml
#	wiremock-micronaut/pom.xml
Signed-off-by: Nahuel Rodriguez <12597182+Nahuel92@users.noreply.github.com>
# Conflicts:
#	pom.xml
#	wiremock-micronaut/pom.xml
Signed-off-by: Nahuel Rodriguez <12597182+Nahuel92@users.noreply.github.com>
Signed-off-by: Nahuel Rodriguez <12597182+Nahuel92@users.noreply.github.com>
Signed-off-by: Nahuel Rodriguez <12597182+Nahuel92@users.noreply.github.com>
…autWireMockTest` are not used together.

Signed-off-by: Nahuel Rodriguez <12597182+Nahuel92@users.noreply.github.com>
@Nahuel92 Nahuel92 marked this pull request as ready for review December 1, 2024 17:56
@Nahuel92 Nahuel92 merged commit bed62c3 into master Dec 1, 2024
1 check passed
@Nahuel92 Nahuel92 deleted the feature/fix-broken-extension branch December 1, 2024 18:00
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.

1 participant