parent
47340e9318
commit
54c1f1b85a
2 changed files with 13 additions and 1 deletions
2
pom.xml
2
pom.xml
|
@ -41,7 +41,7 @@
|
||||||
<jboss.snapshots.repo.id>jboss-snapshots-repository</jboss.snapshots.repo.id>
|
<jboss.snapshots.repo.id>jboss-snapshots-repository</jboss.snapshots.repo.id>
|
||||||
<jboss.snapshots.repo.url>https://s01.oss.sonatype.org/content/repositories/snapshots/</jboss.snapshots.repo.url>
|
<jboss.snapshots.repo.url>https://s01.oss.sonatype.org/content/repositories/snapshots/</jboss.snapshots.repo.url>
|
||||||
|
|
||||||
<quarkus.version>2.12.0.Final</quarkus.version>
|
<quarkus.version>2.12.2.Final</quarkus.version>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Performing a Wildfly upgrade? Run the:
|
Performing a Wildfly upgrade? Run the:
|
||||||
|
|
|
@ -23,6 +23,7 @@ import static org.keycloak.quarkus.runtime.Environment.forceTestLaunchMode;
|
||||||
import static org.keycloak.quarkus.runtime.cli.command.Main.CONFIG_FILE_LONG_NAME;
|
import static org.keycloak.quarkus.runtime.cli.command.Main.CONFIG_FILE_LONG_NAME;
|
||||||
import static org.keycloak.quarkus.runtime.cli.command.Main.CONFIG_FILE_SHORT_NAME;
|
import static org.keycloak.quarkus.runtime.cli.command.Main.CONFIG_FILE_SHORT_NAME;
|
||||||
|
|
||||||
|
import java.lang.reflect.Method;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
@ -35,6 +36,7 @@ import io.quarkus.runtime.configuration.QuarkusConfigFactory;
|
||||||
import org.junit.jupiter.api.extension.ExtensionContext;
|
import org.junit.jupiter.api.extension.ExtensionContext;
|
||||||
import org.junit.jupiter.api.extension.ParameterContext;
|
import org.junit.jupiter.api.extension.ParameterContext;
|
||||||
import org.junit.jupiter.api.extension.ParameterResolutionException;
|
import org.junit.jupiter.api.extension.ParameterResolutionException;
|
||||||
|
import org.junit.jupiter.api.extension.ReflectiveInvocationContext;
|
||||||
import org.keycloak.it.utils.RawDistRootPath;
|
import org.keycloak.it.utils.RawDistRootPath;
|
||||||
import org.keycloak.it.utils.KeycloakDistribution;
|
import org.keycloak.it.utils.KeycloakDistribution;
|
||||||
import org.keycloak.it.utils.RawKeycloakDistribution;
|
import org.keycloak.it.utils.RawKeycloakDistribution;
|
||||||
|
@ -104,6 +106,16 @@ public class CLITestExtension extends QuarkusMainTestExtension {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void interceptTestMethod(Invocation<Void> invocation,
|
||||||
|
ReflectiveInvocationContext<Method> invocationContext, ExtensionContext extensionContext) throws Throwable {
|
||||||
|
if (dist == null) {
|
||||||
|
super.interceptTestMethod(invocation, invocationContext, extensionContext);
|
||||||
|
} else {
|
||||||
|
invocation.proceed();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void onBeforeStartDistribution(BeforeStartDistribution annotation) {
|
private void onBeforeStartDistribution(BeforeStartDistribution annotation) {
|
||||||
if (annotation != null) {
|
if (annotation != null) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue