Search in sources :

Example 1 with CLIResult

use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.

the class HelpCommandTest method testStartDevHelp.

@Test
@Launch({ StartDev.NAME, "--help" })
void testStartDevHelp(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertHelp();
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) Test(org.junit.jupiter.api.Test) CLITest(org.keycloak.it.junit5.extension.CLITest) Launch(io.quarkus.test.junit.main.Launch)

Example 2 with CLIResult

use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.

the class HelpCommandTest method testStartHelp.

@Test
@Launch({ Start.NAME, "--help" })
void testStartHelp(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertHelp();
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) Test(org.junit.jupiter.api.Test) CLITest(org.keycloak.it.junit5.extension.CLITest) Launch(io.quarkus.test.junit.main.Launch)

Example 3 with CLIResult

use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.

the class HelpCommandTest method testStartDevHelpAll.

@Test
@Launch({ StartDev.NAME, "--help-all" })
void testStartDevHelpAll(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertHelp();
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) Test(org.junit.jupiter.api.Test) CLITest(org.keycloak.it.junit5.extension.CLITest) Launch(io.quarkus.test.junit.main.Launch)

Example 4 with CLIResult

use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.

the class BuildAndStartDistTest method testStartUsingCliArgs.

@Test
@Launch({ "start", "--http-enabled=true", "--hostname-strict=false" })
@Order(2)
void testStartUsingCliArgs(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertStarted();
    cliResult.assertLocalCache();
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) TestMethodOrder(org.junit.jupiter.api.TestMethodOrder) Order(org.junit.jupiter.api.Order) Test(org.junit.jupiter.api.Test) DistributionTest(org.keycloak.it.junit5.extension.DistributionTest) Launch(io.quarkus.test.junit.main.Launch)

Example 5 with CLIResult

use of org.keycloak.it.junit5.extension.CLIResult in project keycloak by keycloak.

the class BuildAndStartDistTest method testBuildWithCliArgs.

@Test
@Launch({ "build", "--cache=local" })
@Order(1)
void testBuildWithCliArgs(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertBuild();
}
Also used : CLIResult(org.keycloak.it.junit5.extension.CLIResult) TestMethodOrder(org.junit.jupiter.api.TestMethodOrder) Order(org.junit.jupiter.api.Order) Test(org.junit.jupiter.api.Test) DistributionTest(org.keycloak.it.junit5.extension.DistributionTest) Launch(io.quarkus.test.junit.main.Launch)

Aggregations

Launch (io.quarkus.test.junit.main.Launch)56 Test (org.junit.jupiter.api.Test)56 CLIResult (org.keycloak.it.junit5.extension.CLIResult)56 DistributionTest (org.keycloak.it.junit5.extension.DistributionTest)41 Order (org.junit.jupiter.api.Order)23 TestMethodOrder (org.junit.jupiter.api.TestMethodOrder)23 CLITest (org.keycloak.it.junit5.extension.CLITest)12 BeforeStartDistribution (org.keycloak.it.junit5.extension.BeforeStartDistribution)4 StartCommandTest (org.keycloak.it.cli.StartCommandTest)1