forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce the ability to inject context into @QuarkusIntegrationTest …
…tests Resolves: quarkusio#18854
- Loading branch information
Showing
9 changed files
with
91 additions
and
14 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
integration-tests/mongodb-rest-data-panache/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
quarkus.mongodb.connection-string=mongodb://localhost:27017 | ||
quarkus.mongodb.write-concern.journal=false | ||
quarkus.mongodb.database=test |
14 changes: 12 additions & 2 deletions
14
...nache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
package io.quarkus.it.mongodb.rest.data.panache; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.condition.DisabledOnOs; | ||
import org.junit.jupiter.api.condition.OS; | ||
|
||
import io.quarkus.test.junit.NativeImageTest; | ||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
|
||
@NativeImageTest | ||
@QuarkusIntegrationTest | ||
@DisabledOnOs(OS.WINDOWS) | ||
class MongoDbRestDataPanacheIT extends MongoDbRestDataPanacheTest { | ||
|
||
QuarkusIntegrationTest.Context context; | ||
|
||
@Test | ||
public void testDevServicesProperties() { | ||
assertThat(context.devServicesProperties()).hasSize(1).containsKey("quarkus.mongodb.connection-string"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 13 additions & 2 deletions
15
...ests/oidc/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationInGraalITCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
package io.quarkus.it.keycloak; | ||
|
||
import io.quarkus.test.junit.NativeImageTest; | ||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
@NativeImageTest | ||
import org.junit.jupiter.api.Test; | ||
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
|
||
@QuarkusIntegrationTest | ||
public class BearerTokenAuthorizationInGraalITCase extends BearerTokenAuthorizationTest { | ||
|
||
QuarkusIntegrationTest.Context context; | ||
|
||
@Test | ||
public void testDevServicesProperties() { | ||
assertThat(context.devServicesProperties()).isEmpty(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters