https://github.com/twobiers/mockbean-rabbitmq
https://github.com/twobiers/mockbean-rabbitmq
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/twobiers/mockbean-rabbitmq
- Owner: twobiers
- Created: 2023-01-13T16:32:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-13T17:09:52.000Z (over 2 years ago)
- Last Synced: 2025-02-08T16:35:23.315Z (5 months ago)
- Language: Java
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
Example Repo for question: https://stackoverflow.com/questions/75111282/using-spring-boot-mockbean-annotation-in-test-inheritance?noredirect=1#comment132548073_75111282
## Running the tests
See stdout for the test output.
```bash
./gradlew test
```
It should contain:
```
FirstTest
BeanToConsume is of type: com.example.mockbeantest.BeanToConsume
SecondTest
BeanToConsume is of type: com.example.mockbeantest.BeanToConsume
```Although I would expect the SecondTest to print a Mock of BeanToConsume.