alibaba / alibaba/testable-mock
testable.version>0.52 无法与 swagger 集成
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
经过验证发现testable.version>0.6.5时与swagger3集成,Test用例执行就会报错:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiDocumentationScanner' defined in URL [jar:file:/C:/Users/xxxx/.m2/repository/io/springfox/springfox-spring-web/3.0.0/springfox-spring-web-3.0.0.jar!/springfox/documentation/spring/web/scanners/ApiDocumentationScanner.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [springfox.documentation.schema.property.ModelSpecificationFactory]: No default constructor found; nested exception is java.lang.NoSuchMethodException: springfox.documentation.schema.property.ModelSpecificationFactory.()
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file, test, or entry point is named. First reproduce the failure with testable.version greater than 0.6.5 and swagger3, then investigate the Springfox dependency compatibility behind the ModelSpecificationFactory constructor error. Done means the Test cases execute successfully with that integration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100