I use cucumber in an application Jmix with some add-ons (Map, Reports,…), all is ok.
I want to split my app in modules (add-ons) and use cucumber on each.
But I have I have a strange bug when I add a new Add-On in my Add-on !
I create a minimal project to explain it.
Tests runs correctly, and I can add Add-On App-Settings (may be others Add-Ons are ok)
sources
build
But when I add Map or Reports Add-Ons (and may be others) I get an error
sources
modifications
build
Step failed
java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
Exception Description: Problem compiling [select e from FixTest_User e where e.username = :username].
[14, 26] The abstract schema type 'FixTest_User' is unknown.
[35, 45] The state field path 'e.username' cannot be resolved to a valid type.
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1755)
at io.jmix.eclipselink.impl.JmixEclipseLinkQuery.buildJPAQuery(JmixEclipseLinkQuery.java:557)
at io.jmix.eclipselink.impl.JmixEclipseLinkQuery.getQuery(JmixEclipseLinkQuery.java:467)
at io.jmix.eclipselink.impl.JmixEclipseLinkQuery.getResultList(JmixEclipseLinkQuery.java:134)
at io.jmix.eclipselink.impl.JpaDataStore.executeQuery(JpaDataStore.java:576)
at io.jmix.eclipselink.impl.JpaDataStore.loadAll(JpaDataStore.java:167)
at io.jmix.core.datastore.AbstractDataStore.loadList(AbstractDataStore.java:127)
at io.jmix.core.impl.UnconstrainedDataManagerImpl.loadList(UnconstrainedDataManagerImpl.java:112)
at io.jmix.core.FluentLoader$ByQuery.list(FluentLoader.java:570)
at io.jmix.securitydata.user.AbstractDatabaseUserRepository.loadUserByUsername(AbstractDatabaseUserRepository.java:189)
at io.jmix.core.security.impl.SystemAuthenticationProvider.authenticate(SystemAuthenticationProvider.java:48)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:182)
at io.jmix.core.security.impl.SystemAuthenticatorImpl.begin(SystemAuthenticatorImpl.java:75)
at com.company.fixtestaddon.CucumberSpringConfiguration.before(CucumberSpringConfiguration.kt:20)