Package io.quarkus.test.junit
Class IntegrationTestUtil
- java.lang.Object
-
- io.quarkus.test.junit.IntegrationTestUtil
-
public final class IntegrationTestUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classIntegrationTestUtil.DefaultDevServicesLaunchResult
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_HTTPS_PORTstatic intDEFAULT_PORTstatic longDEFAULT_WAIT_TIME_SECONDS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static PathdetermineBuildOutputDirectory(org.junit.jupiter.api.extension.ExtensionContext context)(package private) static TestProfileAndPropertiesdetermineTestProfileAndProperties(Class<? extends QuarkusTestProfile> profile, Map<String,String> sysPropRestore)(package private) static voiddoProcessTestInstance(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context)(package private) static voidensureNoInjectAnnotationIsUsed(Class<?> testClass)(package private) static Class<? extends QuarkusTestProfile>findProfile(Class<?> testClass)(package private) static <T> List<T>getAdditionalTestResources(QuarkusTestProfile profileInstance, ClassLoader classLoader)SinceTestResourceManageris loaded from the ClassLoader passed in as an argument, we need to convert the user inputQuarkusTestProfile.TestResourceEntryinto instances ofTestResourceManager.TestResourceClassEntrythat are loaded from that ClassLoader(package private) static Map<String,String>getSysPropsToRestore()(package private) static ArtifactLauncher.InitContext.DevServicesLaunchResulthandleDevServices(org.junit.jupiter.api.extension.ExtensionContext context, boolean isDockerAppLaunch)(package private) static PropertiesreadQuarkusArtifactProperties(org.junit.jupiter.api.extension.ExtensionContext context)(package private) static voidstartLauncher(ArtifactLauncher launcher, Map<String,String> additionalProperties, Runnable sslSetter)
-
-
-
Field Detail
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
DEFAULT_HTTPS_PORT
public static final int DEFAULT_HTTPS_PORT
- See Also:
- Constant Field Values
-
DEFAULT_WAIT_TIME_SECONDS
public static final long DEFAULT_WAIT_TIME_SECONDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
ensureNoInjectAnnotationIsUsed
static void ensureNoInjectAnnotationIsUsed(Class<?> testClass)
-
findProfile
static Class<? extends QuarkusTestProfile> findProfile(Class<?> testClass)
-
doProcessTestInstance
static void doProcessTestInstance(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context)
-
determineTestProfileAndProperties
static TestProfileAndProperties determineTestProfileAndProperties(Class<? extends QuarkusTestProfile> profile, Map<String,String> sysPropRestore) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException
-
getAdditionalTestResources
static <T> List<T> getAdditionalTestResources(QuarkusTestProfile profileInstance, ClassLoader classLoader)
SinceTestResourceManageris loaded from the ClassLoader passed in as an argument, we need to convert the user inputQuarkusTestProfile.TestResourceEntryinto instances ofTestResourceManager.TestResourceClassEntrythat are loaded from that ClassLoader
-
startLauncher
static void startLauncher(ArtifactLauncher launcher, Map<String,String> additionalProperties, Runnable sslSetter) throws IOException
- Throws:
IOException
-
handleDevServices
static ArtifactLauncher.InitContext.DevServicesLaunchResult handleDevServices(org.junit.jupiter.api.extension.ExtensionContext context, boolean isDockerAppLaunch) throws Exception
- Throws:
Exception
-
readQuarkusArtifactProperties
static Properties readQuarkusArtifactProperties(org.junit.jupiter.api.extension.ExtensionContext context)
-
determineBuildOutputDirectory
static Path determineBuildOutputDirectory(org.junit.jupiter.api.extension.ExtensionContext context)
-
-