-
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
Showing
31 changed files
with
1,548 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 { | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
...ration-tests/maven/src/test/java/io/quarkus/maven/it/FastJarQuarkusIntegrationTestIT.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,15 @@ | ||
package io.quarkus.maven.it; | ||
|
||
import java.io.IOException; | ||
|
||
import org.apache.maven.shared.invoker.MavenInvocationException; | ||
import org.junit.jupiter.api.Test; | ||
|
||
@DisableForNative | ||
public class FastJarQuarkusIntegrationTestIT extends QuarkusITBase { | ||
|
||
@Test | ||
public void testFastJar() throws MavenInvocationException, IOException { | ||
doTest("qit-fast-jar", "fastjar"); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...tion-tests/maven/src/test/java/io/quarkus/maven/it/LegacyJarQuarkusIntegrationTestIT.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,15 @@ | ||
package io.quarkus.maven.it; | ||
|
||
import java.io.IOException; | ||
|
||
import org.apache.maven.shared.invoker.MavenInvocationException; | ||
import org.junit.jupiter.api.Test; | ||
|
||
@DisableForNative | ||
public class LegacyJarQuarkusIntegrationTestIT extends QuarkusITBase { | ||
|
||
@Test | ||
public void testFastJar() throws MavenInvocationException, IOException { | ||
doTest("qit-legacy-jar", "legacyjar"); | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
integration-tests/maven/src/test/java/io/quarkus/maven/it/QuarkusITBase.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,43 @@ | ||
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 io.quarkus.maven.it.verifier.MavenProcessInvocationResult; | ||
import io.quarkus.maven.it.verifier.RunningInvoker; | ||
|
||
// meant to test that @QuarkusIntegrationTest can properly launch jars | ||
abstract class QuarkusITBase extends MojoTestBase { | ||
|
||
void doTest(String projectName, String profile) throws MavenInvocationException, IOException { | ||
File testDir = initProject("projects/reactive-routes", "projects/" + projectName); | ||
RunningInvoker packageInvocation = new RunningInvoker(testDir, false); | ||
|
||
MavenProcessInvocationResult packageInvocationResult = packageInvocation | ||
.execute(Arrays.asList("package", "-B", | ||
"-D" + profile), Collections.emptyMap()); | ||
|
||
await().atMost(1, TimeUnit.MINUTES) | ||
.until(() -> packageInvocationResult.getProcess() != null && !packageInvocationResult.getProcess().isAlive()); | ||
assertThat(packageInvocation.log()).containsIgnoringCase("BUILD SUCCESS"); | ||
|
||
RunningInvoker integrationTestsInvocation = new RunningInvoker(testDir, false); | ||
|
||
MavenProcessInvocationResult integrationTestsInvocationResult = integrationTestsInvocation | ||
.execute(Arrays.asList("failsafe:integration-test", "-B", | ||
"-D" + profile), Collections.emptyMap()); | ||
|
||
await().atMost(1, TimeUnit.MINUTES) | ||
.until(() -> integrationTestsInvocationResult.getProcess() != null | ||
&& !integrationTestsInvocationResult.getProcess().isAlive()); | ||
assertThat(integrationTestsInvocation.log()).containsIgnoringCase("BUILD SUCCESS"); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...ration-tests/maven/src/test/java/io/quarkus/maven/it/UberJarQuarkusIntegrationTestIT.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,15 @@ | ||
package io.quarkus.maven.it; | ||
|
||
import java.io.IOException; | ||
|
||
import org.apache.maven.shared.invoker.MavenInvocationException; | ||
import org.junit.jupiter.api.Test; | ||
|
||
@DisableForNative | ||
public class UberJarQuarkusIntegrationTestIT extends QuarkusITBase { | ||
|
||
@Test | ||
public void testFastJar() throws MavenInvocationException, IOException { | ||
doTest("qit-uber-jar", "uberjar"); | ||
} | ||
} |
Oops, something went wrong.