Hello!
My project has multi add-ons.
I want to run BDD using cucumber at the Jmix project.
But there are some problems,
one is: I don’t find the document of the unit test or other test hints.
second is: If the test needs to depend another add-on entity. Is there any way to depend?
Note:
- I know @SpringBootTest can run unit-test, but I want to use Cucumber(or any better suggestion~?)
- because I didn’t set dependency, when I run the cucumber test spring boot will throw this exception:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'core_UserSubstitutionManager': Unsatisfied dependency expressed through field 'userRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auth_UserRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: MetaClass not found for class com.a.b.ts.core.auth.user.entity.User
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659) ~[spring-beans-5.3.23.jar:5.3.23]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639) ~[spring-beans-5.3.23.jar:5.3.23]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) ~[spring-beans-5.3.23.jar:5.3.23]
- I know my English is not very will, sorry
please help, thx~~