Search in sources :

Example 56 with Order

use of org.junit.jupiter.api.Order in project keycloak by keycloak.

the class StartAutoBuildDistTest method testShouldNotReAugIfSameDatabase.

@Test
@Launch({ "start", "--auto-build", "--db=dev-mem", "--http-enabled=true", "--hostname-strict=false", "--cache=local" })
@Order(4)
void testShouldNotReAugIfSameDatabase(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertNoBuild();
    cliResult.assertStarted();
}
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 57 with Order

use of org.junit.jupiter.api.Order in project keycloak by keycloak.

the class StartAutoBuildDistTest method testStartAutoBuild.

@Test
@Launch({ "start", "--auto-build", "--http-enabled=true", "--hostname-strict=false", "--cache=local" })
@Order(1)
void testStartAutoBuild(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertMessage("Changes detected in configuration. Updating the server image.");
    cliResult.assertMessage("Updating the configuration and installing your custom providers, if any. Please wait.");
    cliResult.assertMessage("Server configuration updated and persisted. Run the following command to review the configuration:");
    cliResult.assertMessage("kc.sh show-config");
    cliResult.assertMessage("Next time you run the server, just run:");
    cliResult.assertMessage("kc.sh start --http-enabled=true --hostname-strict=false");
    assertFalse(cliResult.getOutput().contains("--cache"));
    cliResult.assertStarted();
}
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 58 with Order

use of org.junit.jupiter.api.Order in project keycloak by keycloak.

the class StartAutoBuildDistTest method testReAugWhenNoOptionAfterBuild.

@Test
@Launch({ "start", "--auto-build", "--http-enabled=true", "--hostname-strict=false", "--cache=local" })
@Order(6)
void testReAugWhenNoOptionAfterBuild(LaunchResult result) {
    CLIResult cliResult = (CLIResult) result;
    cliResult.assertBuild();
    cliResult.assertStarted();
}
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 59 with Order

use of org.junit.jupiter.api.Order in project nem2-sdk-java by nemtech.

the class AAASetupIntegrationTest method createRootAndChild.

@Test
@Order(1)
void createRootAndChild() {
    Account account = config().getNemesisAccount();
    NamespaceRegistrationTransaction root = NamespaceRegistrationTransactionFactory.createRootNamespace(getNetworkType(), getDeadline(), "root", helper.getDuration()).maxFee(maxFee).build();
    helper().announceAndValidate(type, account, root);
    NamespaceRegistrationTransaction child = NamespaceRegistrationTransactionFactory.createSubNamespace(getNetworkType(), getDeadline(), "child", root.getNamespaceId()).maxFee(maxFee).build();
    helper().announceAndValidate(type, account, child);
}
Also used : Account(io.nem.symbol.sdk.model.account.Account) NamespaceRegistrationTransaction(io.nem.symbol.sdk.model.transaction.NamespaceRegistrationTransaction) TestMethodOrder(org.junit.jupiter.api.TestMethodOrder) Order(org.junit.jupiter.api.Order) Test(org.junit.jupiter.api.Test)

Example 60 with Order

use of org.junit.jupiter.api.Order in project nem2-sdk-java by nemtech.

the class AAASetupIntegrationTest method createNamespces.

@Test
@Order(1)
void createNamespces() {
    Account account = config().getNemesisAccount();
    NamespaceRegistrationTransaction root = NamespaceRegistrationTransactionFactory.createRootNamespace(getNetworkType(), getDeadline(), "root3", helper.getDuration()).maxFee(maxFee).build();
    helper().announceAndValidate(type, account, root);
    NamespaceRegistrationTransaction child1 = NamespaceRegistrationTransactionFactory.createSubNamespace(getNetworkType(), getDeadline(), "child1", root.getNamespaceId()).maxFee(maxFee).build();
    helper().announceAndValidate(type, account, child1);
    NamespaceRegistrationTransaction subchild1 = NamespaceRegistrationTransactionFactory.createSubNamespace(getNetworkType(), getDeadline(), "subchild1", child1.getNamespaceId()).maxFee(maxFee).build();
    helper().announceAndValidate(type, account, subchild1);
    NamespaceRegistrationTransaction subchild2 = NamespaceRegistrationTransactionFactory.createSubNamespace(getNetworkType(), getDeadline(), "subchild2", child1.getNamespaceId()).maxFee(maxFee).build();
    helper().announceAndValidate(type, account, subchild2);
    NamespaceRegistrationTransaction child2 = NamespaceRegistrationTransactionFactory.createSubNamespace(getNetworkType(), getDeadline(), "child2", root.getNamespaceId()).maxFee(maxFee).build();
    helper().announceAndValidate(type, account, child2);
    NamespaceRegistrationTransaction child3 = NamespaceRegistrationTransactionFactory.createSubNamespace(getNetworkType(), getDeadline(), "child3", root.getNamespaceId()).maxFee(maxFee).build();
    helper().announceAndValidate(type, account, child3);
    NamespaceRegistrationTransaction subchild3 = NamespaceRegistrationTransactionFactory.createSubNamespace(getNetworkType(), getDeadline(), "subchild3", child1.getNamespaceId()).maxFee(maxFee).build();
    helper().announceAndValidate(type, account, subchild3);
}
Also used : Account(io.nem.symbol.sdk.model.account.Account) NamespaceRegistrationTransaction(io.nem.symbol.sdk.model.transaction.NamespaceRegistrationTransaction) TestMethodOrder(org.junit.jupiter.api.TestMethodOrder) Order(org.junit.jupiter.api.Order) Test(org.junit.jupiter.api.Test)

Aggregations

Order (org.junit.jupiter.api.Order)2428 Test (org.junit.jupiter.api.Test)2355 TestMethodOrder (org.junit.jupiter.api.TestMethodOrder)1734 DisplayName (org.junit.jupiter.api.DisplayName)690 AbstractImportTest (de.adorsys.keycloak.config.AbstractImportTest)234 AbstractPrimePageTest (org.primefaces.selenium.AbstractPrimePageTest)190 Thing (com.inova8.intelligentgraph.model.Thing)188 RealmRepresentation (org.keycloak.representations.idm.RealmRepresentation)188 JsonObject (io.vertx.core.json.JsonObject)145 PathElement (com.inova8.pathql.element.PathElement)139 Resource (com.inova8.intelligentgraph.model.Resource)134 InvocationResult (org.apache.maven.shared.invoker.InvocationResult)127 File (java.io.File)107 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)103 MavenInvocationResult (org.eclipse.jkube.integrationtests.maven.MavenInvocationResult)100 DataTable (org.primefaces.selenium.component.DataTable)97 RecognitionException (org.antlr.v4.runtime.RecognitionException)88 Matchers.containsString (org.hamcrest.Matchers.containsString)85 HashMap (java.util.HashMap)82 VerifiableCredential (org.elastos.did.VerifiableCredential)79