ActiveMQ in-memory broker not starting when tests running in IntelliJ IDEA

Todd W Crone

So I'm running an integration test/spec using configuration for an ActiveMQ in-memory broker.

SomeSpec.groovy:

@SpringApplicationConfiguration(SomeApplication.class)
@WebIntegrationTest(randomPort = true)
class SomeSpec extends Specification {

application.properties

spring.activemq.in-memory=true
spring.activemq.pooled=false

The in memory broker starts up and runs fine when I do gradle test and also runs fine when used with gradle bootRun at the command line. However when I run inside IntelliJ without explicitly having it run gradle test the in memory broker does not start and the tests fail.

How can I take and advantage of the nice test/spec running features in IntelliJ but still have it initialize the in memory queue properly? I know with Grails you could run with JUnit or Grails. Is there something similar with Spring/SpringBoot so everything starts up properly.

K139

It's probably because your config files are not refreshed under project/out/production/config/ location.

When you run it from cmd line, it takes the latest application.properties, so every thing is fine.

But Idea takes the already compiled config files, and if they are not rebuilt inside Idea then it still loads the load configuration.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

ActiveMQ in-memory broker not starting when tests running in IntelliJ IDEA

From Java

"No tests found for given includes" when running Gradle tests in IntelliJ IDEA

From Dev

"No tests found for given includes" when running Gradle tests in IntelliJ IDEA

From Dev

ActiveMQ broker not starting

From Dev

OpenEJB Logger configuration when running tests from TestNG in Intellij IDEA

From Dev

Running jest tests directly in Intellij Idea/WebStorm?

From Dev

IntelliJ NoClassDefFoundError when running IntelliJ Tests

From Dev

Play framework 2 running unit tests in Intellij IDEA 13

From Dev

Play framework 2 running unit tests in Intellij IDEA 13

From Dev

ActiveMQ Artemis running multiple web consoles for broker

From Dev

Exception when restarting embedded activeMQ broker with jdbcPersistenceAdapter

From Dev

Intellij complains about fork mode when running tests with code cover

From Dev

Empty benchmarks when running JMH samples in Intellij IDEA

From Dev

intellij idea 14 and gradle issues when running integTests

From Dev

Gradle daemon not reused when running in debug mode (in IntelliJ IDEA)

From Dev

java.lang.ClassNotFoundException when running in IntelliJ IDEA

From Dev

When running tests from "sbt test" the classpath is different than when running from IDEA

From Dev

IntelliJ IDEA 13: Keyboard shortcuts to navigate stack trace after running tests?

From Dev

How to automate running tests before commit in Intellij Idea, without additional software?

From Dev

Idea IntelliJ 14.1 Out of memory

From Dev

Running Unit and Integration Tests in IntelliJ

From Dev

Running Spark Unit Tests in IntelliJ

From Dev

IntelliJ running tests one by one

From Dev

IntelliJ IDEA Error Running Application

From Java

A problem in showing Unicode Character when running Java artifact, but everything ok while running in IntelliJ IDEA

From Dev

ActiveMQ embedded broker hanging when sending a Post request

From Dev

ActiveMQ is not starting

From Dev

How run all tests for class in Intellij Idea?

From Dev

Intellij IDEA warnings for @Nonnull annotation in unit tests

Related Related

  1. 1

    ActiveMQ in-memory broker not starting when tests running in IntelliJ IDEA

  2. 2

    "No tests found for given includes" when running Gradle tests in IntelliJ IDEA

  3. 3

    "No tests found for given includes" when running Gradle tests in IntelliJ IDEA

  4. 4

    ActiveMQ broker not starting

  5. 5

    OpenEJB Logger configuration when running tests from TestNG in Intellij IDEA

  6. 6

    Running jest tests directly in Intellij Idea/WebStorm?

  7. 7

    IntelliJ NoClassDefFoundError when running IntelliJ Tests

  8. 8

    Play framework 2 running unit tests in Intellij IDEA 13

  9. 9

    Play framework 2 running unit tests in Intellij IDEA 13

  10. 10

    ActiveMQ Artemis running multiple web consoles for broker

  11. 11

    Exception when restarting embedded activeMQ broker with jdbcPersistenceAdapter

  12. 12

    Intellij complains about fork mode when running tests with code cover

  13. 13

    Empty benchmarks when running JMH samples in Intellij IDEA

  14. 14

    intellij idea 14 and gradle issues when running integTests

  15. 15

    Gradle daemon not reused when running in debug mode (in IntelliJ IDEA)

  16. 16

    java.lang.ClassNotFoundException when running in IntelliJ IDEA

  17. 17

    When running tests from "sbt test" the classpath is different than when running from IDEA

  18. 18

    IntelliJ IDEA 13: Keyboard shortcuts to navigate stack trace after running tests?

  19. 19

    How to automate running tests before commit in Intellij Idea, without additional software?

  20. 20

    Idea IntelliJ 14.1 Out of memory

  21. 21

    Running Unit and Integration Tests in IntelliJ

  22. 22

    Running Spark Unit Tests in IntelliJ

  23. 23

    IntelliJ running tests one by one

  24. 24

    IntelliJ IDEA Error Running Application

  25. 25

    A problem in showing Unicode Character when running Java artifact, but everything ok while running in IntelliJ IDEA

  26. 26

    ActiveMQ embedded broker hanging when sending a Post request

  27. 27

    ActiveMQ is not starting

  28. 28

    How run all tests for class in Intellij Idea?

  29. 29

    Intellij IDEA warnings for @Nonnull annotation in unit tests

HotTag

Archive