-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
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
2 changes: 2 additions & 0 deletions
2
ui-super-heroes/src/test/java/io/quarkus/sample/superheroes/ui/EnvResourceIT.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,13 @@ | ||
package io.quarkus.sample.superheroes.ui; | ||
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
import io.quarkus.test.junit.TestProfile; | ||
|
||
/** | ||
* Tests the resource layer ({@link EnvResource}). | ||
*/ | ||
@QuarkusIntegrationTest | ||
@TestProfile(ITTestProfile.class) | ||
class EnvResourceIT extends EnvResourceTests { | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
ui-super-heroes/src/test/java/io/quarkus/sample/superheroes/ui/ITTestProfile.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.quarkus.sample.superheroes.ui; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import io.quarkiverse.quinoa.testing.QuinoaTestProfiles; | ||
|
||
public class ITTestProfile extends QuinoaTestProfiles.Enable { | ||
@Override | ||
public Map<String, String> getConfigOverrides() { | ||
var configOverrides = new HashMap<>(super.getConfigOverrides()); | ||
configOverrides.put("api.base.url", "http://${quarkus.microcks.default.http.host}:${quarkus.microcks.default.http.port}/rest/Fights+API/1.0"); | ||
|
||
return configOverrides; | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
ui-super-heroes/src/test/java/io/quarkus/sample/superheroes/ui/WebUIIT.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,12 @@ | ||
package io.quarkus.sample.superheroes.ui; | ||
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
import io.quarkus.test.junit.TestProfile; | ||
|
||
/** | ||
* Tests the resource layer ({@link EnvResource}). | ||
*/ | ||
@QuarkusIntegrationTest | ||
@TestProfile(ITTestProfile.class) | ||
class WebUIIT extends WebUITests { | ||
|
||
} |