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); - } - } -}