Skip to content

Commit

Permalink
Merge pull request #42146 from jedla97/remove-missed-quarkusTestResource
Browse files Browse the repository at this point in the history
Removed missed deprecated `@QuarkusTestResource` from docs
  • Loading branch information
geoand authored Jul 26, 2024
2 parents 072ce4a + 6588ea3 commit 0b942a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/mongodb.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -639,14 +639,14 @@ To set the desired port MongoDB will listen to when it is launched, the followin
[source,java]
----
@QuarkusTestResource(value = MongoTestResource.class, initArgs = @ResourceArg(name = MongoTestResource.PORT, value = "27017"))
@WithTestResource(value = MongoTestResource.class, initArgs = @ResourceArg(name = MongoTestResource.PORT, value = "27017"))
----
To set the desired MongoDB version that will be launched, the following code should be used:
[source,java]
----
@QuarkusTestResource(value = MongoTestResource.class, initArgs = @ResourceArg(name = MongoTestResource.VERSION, value = "V5_0"))
@WithTestResource(value = MongoTestResource.class, initArgs = @ResourceArg(name = MongoTestResource.VERSION, value = "V5_0"))
----
The string value used can be any of one of the `de.flapdoodle.embed.mongo.distribution.Version` or `de.flapdoodle.embed.mongo.distribution.Version.Main` enums.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/native-and-ssl.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ which configures our REST client to connect to an SSL REST service.
For the purposes of this guide, we also need to remove the configuration that starts the embedded WireMock server that stubs REST client responses so the tests actually propagate calls to the https://stage.code.quarkus.io/api. Update the test file `src/test/java/org/acme/rest/client/ExtensionsResourceTest.java` and remove the line:
[source,java]
----
@QuarkusTestResource(WireMockExtensions.class)
@WithTestResource(WireMockExtensions.class)
----
from the `ExtensionsResourceTest` class.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.lang.annotation.Target;

/**
* Uses to define arguments of for {@code QuarkusTestResource}
* Uses to define arguments for {@code WithTestResource}
*
* see {@link WithTestResource#initArgs()}
*/
Expand Down

0 comments on commit 0b942a9

Please sign in to comment.