[ https://issues.apache.org/jira/browse/ISIS-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17187896#comment-17187896 ]
Brian Kalbfus commented on ISIS-2420: ------------------------------------- I think I have a conclusion to this. * Case #2 is inappropriate for SimpleModule. It should use UserService. * Case #1 is solved by changing WebApp module's domainapp.webapp.integtests.ApplicationIntegTestAbstract to import domainapp.webapp.AppManifest and not import IsisModuleSecurityBypass. > 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)