From 52804da4970e4a45b0d4636a3841a892b7425c01 Mon Sep 17 00:00:00 2001 From: vramik Date: Thu, 29 Oct 2015 11:36:29 +0100 Subject: [PATCH] arquillian testsuite: improve log messages for migration test --- .../testsuite/arquillian/ContainersTestEnricher.java | 6 +++--- .../org/keycloak/testsuite/migration/MigrationTest.java | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/ContainersTestEnricher.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/ContainersTestEnricher.java index 01d8efd7a2..67271089d4 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/ContainersTestEnricher.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/ContainersTestEnricher.java @@ -93,7 +93,7 @@ public class ContainersTestEnricher { public void startSuiteContainers(@Observes(precedence = 1) StartSuiteContainers event) { init(); if (migrationTests) { - log.info("\n\n### Starting keycloak with previous version ###\n"); + log.info("\n\n### Starting keycloak " + System.getProperty("version", "- previous") + " ###\n"); } } @@ -109,9 +109,9 @@ public class ContainersTestEnricher { } if (migrationTests && !alreadyStopped) { - log.info("\n\n### Stopping keycloak with previous version ###\n"); + log.info("\n\n### Stopping keycloak " + System.getProperty("version", "- previous") + " ###\n"); stopSuiteContainers.fire(new StopSuiteContainers()); - log.info("\n\n### Starting keycloak with current version ###\n"); + log.info("\n\n### Starting keycloak current version ###\n"); } alreadyStopped = true; } diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/migration/MigrationTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/migration/MigrationTest.java index 3fd1b7c135..6e7e2c8912 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/migration/MigrationTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/migration/MigrationTest.java @@ -21,6 +21,7 @@ */ package org.keycloak.testsuite.migration; +import org.junit.Assert; import org.junit.Test; import org.keycloak.representations.idm.RealmRepresentation; import org.keycloak.testsuite.AbstractAuthTest; @@ -38,7 +39,7 @@ public class MigrationTest extends AbstractAuthTest { System.out.println(realm.getRealm()); } - throw new RuntimeException("TODO"); + Assert.fail("TODO"); } }