[
https://issues.apache.org/jira/browse/ISIS-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brian Kalbfus updated ISIS-2420:
--------------------------------
Description:
see [https://github.com/bkalbfus/isis-app-simpleapp]
Spring cannot find a bean to inject when running integration or BDD tests.
Skipping test allows SimpleModule to build and then WebApp module can run with
spring-boot:run. Wicket app works perfectly.
Cases documented in referenced repo:
# Spring Event listener does not get domain service injected for BDD tests.
Launching in Wicket viewer is functioning as expected. This is shown in
NewUserService in WebApp module.
# SimpleObjects injects ApplicationUserRepository. Tests fail the same way.
Spring cannot find a bean to inject.
was:
see [https://github.com/bkalbfus/isis-app-simpleapp]
Spring Event listener does not get domain service injected for BDD tests.
Launching in Wicket viewer is functioning as expected.
Summary: Testing fails when certain beans are injected (was: BDD fails
when there is a Spring event listener that injects a domain service)
> Testing fails when certain beans are injected
> ---------------------------------------------
>
> Key: ISIS-2420
> URL: https://issues.apache.org/jira/browse/ISIS-2420
> Project: Isis
> Issue Type: Bug
> Components: Isis Starters & Mavendeps
> Affects Versions: 2.0.0-M3
> Reporter: Brian Kalbfus
> Priority: Major
>
> see [https://github.com/bkalbfus/isis-app-simpleapp]
> Spring cannot find a bean to inject when running integration or BDD tests.
> Skipping test allows SimpleModule to build and then WebApp module can run
> with spring-boot:run. Wicket app works perfectly.
>
> Cases documented in referenced repo:
> # Spring Event listener does not get domain service injected for BDD tests.
> Launching in Wicket viewer is functioning as expected. This is shown in
> NewUserService in WebApp module.
> # SimpleObjects injects ApplicationUserRepository. Tests fail the same way.
> Spring cannot find a bean to inject.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)