我从GitHub 的参考中添加了 Randoop 插件并运行了 mvn 命令mvn clean test
。它未能为我的所有应用程序 java 类生成测试。我的应用程序基于 Spring MVC、Java 和 Hibernate。Randoop 可以与 Spring 一起使用吗?
潮人?:: 运行 Spring Boot 1.4.2.RELEASE :: :: http://jhipster.github.io ::
2018-12-14 01:46:04.807 INFO 10480 --- [ main] .c.q.b.w.r.IndustryBenchmarkResourceTest : Starting IndustryBenchmarkResourceTest on xxxxxxx with PID xxxx (started
by c-xxxxx in D:\Workspaces\Quantix_Deployment_new\xxxxx\xxxxxx)
2018-12-14 01:46:04.807 DEBUG 10480 --- [ main] .c.q.b.w.r.IndustryBenchmarkResourceTest : Running with Spring Boot v1.4.2.RELEASE, Spring v4.3.4.RELEASE
2018-12-14 01:46:04.808 INFO 10480 --- [ main] .c.q.b.w.r.IndustryBenchmarkResourceTest : No active profile set, falling back to default profiles: default
2018-12-14 01:46:23.489 ERROR 10480 --- [ main] o.s.boot.SpringApplication : Application startup failed
java.lang.IllegalStateException: Error processing condition on org.springframework.boot.devtools.autoconfigure.DevToolsDataSourceAutoConfiguration
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:64)
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:102)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader$TrackedConditionEvaluator.shouldSkip(ConfigurationClassBeanDefinitionReader.java:436)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader$TrackedConditionEvaluator.shouldSkip(ConfigurationClassBeanDefinitionReader.java:425)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:127)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:116)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:336)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:246)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:270)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)