-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExampleRabbitListenerSpyAndCaptureTest fails #1190
Comments
The IntelliJ warning is not relevant. We don't create those beans explicitly so IDEA doesn't know about their configuration. Those beans are created by the So, two bugs over here. Please, don't hesitate to fix them via contribution: https://github.com/spring-projects/spring-amqp/blob/master/CONTRIBUTING.adoc ! |
FYI; this only happens when RabbitMQ is not running locally; we only reference the |
I am going to take it; it's a bit more complicated then just removing the references to |
Resolves spring-projects#1190 - Remove reference to `Assume` in `BrokerRunningSupport` - Move example test cases to a new package so they can be easily copied/pasted - Remove `assumeOnline` field - it looks like it was intended to support running tests only if RabbitMQ is NOT running; but there was never any way to set it to false **cherry-pick to 2.2.x**
Resolves spring-projects#1190 - Remove reference to `Assume` in `BrokerRunningSupport` - Move example test cases to a new package so they can be easily copied/pasted - Remove `assumeOnline` field - it looks like it was intended to support running tests only if RabbitMQ is NOT running; but there was never any way to set it to false **cherry-pick to 2.2.x**
Resolves #1190 - Remove reference to `Assume` in `BrokerRunningSupport` - Move example test cases to a new package so they can be easily copied/pasted - Remove `assumeOnline` field - it looks like it was intended to support running tests only if RabbitMQ is NOT running; but there was never any way to set it to false **cherry-pick to 2.2.x**
Resolves #1190 - Remove reference to `Assume` in `BrokerRunningSupport` - Move example test cases to a new package so they can be easily copied/pasted - Remove `assumeOnline` field - it looks like it was intended to support running tests only if RabbitMQ is NOT running; but there was never any way to set it to false **cherry-pick to 2.2.x**
Thanks for the quick fix. How do I get the fix? I tried with 2.2.6.RELEASE (for spring-boot-starter-test & rabbit-test) from mavenrepo, but no luck. |
It will be in 2.2.7 which is not currently scheduled (we just released 2.2.6 last week). You can work around it by adding the JUnit4 jar to the class path. If there is some valid reason that you can't do that, I can look at accelerating 2.2.7. |
@winster , you could get a fix for now only from the https://repo.spring.io/libs-snapshot/ repository and overriding the version like this: |
cool and thanks @garyrussell and @artembilan |
The regression after #1190 The `assumeNoException(e)` was missed in the `BrokerRunning` when we don't have a locally ran RabbitMQ and no requirement. With the `assumeNoException(e)` test are skipped with positive outcome **Cherry-pick to `2.2.x`**
The regression after #1190 The `assumeNoException(e)` was missed in the `BrokerRunning` when we don't have a locally ran RabbitMQ and no requirement. With the `assumeNoException(e)` test are skipped with positive outcome **Cherry-pick to `2.2.x`** # Conflicts: # spring-rabbit-junit/src/main/java/org/springframework/amqp/rabbit/junit/BrokerRunning.java
Depdencies: spring-boot-starter-test:2.2.5 & spring-rabbit-test:2.2.5
I had the impression that, I can use testcases in spring-rabbit-test in my application. But unfortunately, it does not run.
Major issue with org/springframework/amqp/rabbit/test/ExampleRabbitListenerSpyAndCaptureTest & ExampleRabbitListenerCaptureTest.
Test fails with error
The text was updated successfully, but these errors were encountered: