From b0fbae4f50393344d532cc948cf7cfc27bd22256 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 30 Aug 2021 15:38:33 +0200 Subject: [PATCH] Remove two classes that has been moved to test-framework/artemis --- .../it/artemis/ArtemisTestResource.java | 39 ------------------- .../it/artemis/ArtemisTestResource.java | 39 ------------------- 2 files changed, 78 deletions(-) delete mode 100644 integration-tests/artemis-core/src/test/java/io/quarkus/it/artemis/ArtemisTestResource.java delete mode 100644 integration-tests/artemis-jms/src/test/java/io/quarkus/it/artemis/ArtemisTestResource.java diff --git a/integration-tests/artemis-core/src/test/java/io/quarkus/it/artemis/ArtemisTestResource.java b/integration-tests/artemis-core/src/test/java/io/quarkus/it/artemis/ArtemisTestResource.java deleted file mode 100644 index 822bd492209d1..0000000000000 --- a/integration-tests/artemis-core/src/test/java/io/quarkus/it/artemis/ArtemisTestResource.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.quarkus.it.artemis; - -import java.nio.file.Paths; -import java.util.Collections; -import java.util.Map; - -import org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ; -import org.apache.commons.io.FileUtils; - -import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; - -public class ArtemisTestResource implements QuarkusTestResourceLifecycleManager { - - private EmbeddedActiveMQ embedded; - - @Override - public Map start() { - try { - FileUtils.deleteDirectory(Paths.get("./target/artemis").toFile()); - embedded = new EmbeddedActiveMQ(); - embedded.start(); - } catch (Exception e) { - throw new RuntimeException("Could not start embedded ActiveMQ server", e); - } - return Collections.emptyMap(); - } - - @Override - public void stop() { - if (embedded == null) { - return; - } - try { - embedded.stop(); - } catch (Exception e) { - throw new RuntimeException("Could not stop embedded ActiveMQ server", e); - } - } -} diff --git a/integration-tests/artemis-jms/src/test/java/io/quarkus/it/artemis/ArtemisTestResource.java b/integration-tests/artemis-jms/src/test/java/io/quarkus/it/artemis/ArtemisTestResource.java deleted file mode 100644 index 822bd492209d1..0000000000000 --- a/integration-tests/artemis-jms/src/test/java/io/quarkus/it/artemis/ArtemisTestResource.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.quarkus.it.artemis; - -import java.nio.file.Paths; -import java.util.Collections; -import java.util.Map; - -import org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ; -import org.apache.commons.io.FileUtils; - -import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; - -public class ArtemisTestResource implements QuarkusTestResourceLifecycleManager { - - private EmbeddedActiveMQ embedded; - - @Override - public Map start() { - try { - FileUtils.deleteDirectory(Paths.get("./target/artemis").toFile()); - embedded = new EmbeddedActiveMQ(); - embedded.start(); - } catch (Exception e) { - throw new RuntimeException("Could not start embedded ActiveMQ server", e); - } - return Collections.emptyMap(); - } - - @Override - public void stop() { - if (embedded == null) { - return; - } - try { - embedded.stop(); - } catch (Exception e) { - throw new RuntimeException("Could not stop embedded ActiveMQ server", e); - } - } -}