-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves: #13818
- Loading branch information
Showing
29 changed files
with
1,533 additions
and
348 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
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
21 changes: 21 additions & 0 deletions
21
.../quarkus-standard-way/src/test/java/io/quarkus/it/container/image/GreetingResourceIT.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,21 @@ | ||
package io.quarkus.it.container.image; | ||
|
||
import static io.restassured.RestAssured.given; | ||
import static org.hamcrest.CoreMatchers.is; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
|
||
@QuarkusIntegrationTest | ||
public class GreetingResourceIT { | ||
|
||
@Test | ||
public void testHelloEndpoint() { | ||
given() | ||
.when().get("/greeting") | ||
.then() | ||
.statusCode(200) | ||
.body(is("hello")); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...te-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityInGraalITCase.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,11 @@ | ||
package io.quarkus.it.panache; | ||
|
||
import io.quarkus.test.junit.NativeImageTest; | ||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
|
||
/** | ||
* Test various Panache operations running in native mode | ||
*/ | ||
@NativeImageTest | ||
@QuarkusIntegrationTest | ||
public class PanacheFunctionalityInGraalITCase extends PanacheFunctionalityTest { | ||
|
||
} |
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
4 changes: 2 additions & 2 deletions
4
...nache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityInGraalITCase.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,11 @@ | ||
package io.quarkus.it.panache.reactive; | ||
|
||
import io.quarkus.test.junit.NativeImageTest; | ||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
|
||
/** | ||
* Test various Panache operations running in native mode | ||
*/ | ||
@NativeImageTest | ||
@QuarkusIntegrationTest | ||
public class PanacheFunctionalityInGraalITCase extends PanacheFunctionalityTest { | ||
|
||
} |
49 changes: 49 additions & 0 deletions
49
integration-tests/maven/src/test/java/io/quarkus/maven/it/QuarkusIntegrationTestIT.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,49 @@ | ||
package io.quarkus.maven.it; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
import static org.awaitility.Awaitility.await; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.util.Arrays; | ||
import java.util.Collections; | ||
import java.util.concurrent.TimeUnit; | ||
|
||
import org.apache.maven.shared.invoker.MavenInvocationException; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import io.quarkus.maven.it.verifier.MavenProcessInvocationResult; | ||
import io.quarkus.maven.it.verifier.RunningInvoker; | ||
|
||
// meant to test that @QuarkusIntegrationTest can properly launch jars | ||
@DisableForNative | ||
public class QuarkusIntegrationTestIT extends MojoTestBase { | ||
|
||
@Test | ||
public void testFastJar() throws MavenInvocationException, IOException { | ||
doTest("qit-fast-jar", "-Dfastjar"); | ||
} | ||
|
||
@Test | ||
public void testLegacyJar() throws MavenInvocationException, IOException { | ||
doTest("qit-legacy-jar", "-Dlegacyjar"); | ||
} | ||
|
||
@Test | ||
public void testUberJar() throws MavenInvocationException, IOException { | ||
doTest("qit-uber-jar", "-Duberjar"); | ||
} | ||
|
||
private void doTest(String projectName, String profile) throws MavenInvocationException, IOException { | ||
File testDir = initProject("projects/reactive-routes", "projects/" + projectName); | ||
RunningInvoker running = new RunningInvoker(testDir, false); | ||
|
||
MavenProcessInvocationResult result = running | ||
.execute(Arrays.asList("verify", | ||
profile), Collections.emptyMap()); | ||
|
||
await().atMost(2, TimeUnit.MINUTES).until(() -> result.getProcess() != null && !result.getProcess().isAlive()); | ||
assertThat(running.log()).containsIgnoringCase("BUILD SUCCESS"); | ||
running.stop(); | ||
} | ||
} |
Oops, something went wrong.