У меня приложение весенней загрузки с настроенным чванством.Я получаю сообщение об ошибке при тестировании огурца.Вот конфигурация:
@Configuration
@EnableSwagger2
@EnableWebMvc
public class SwaggerConfig {
}
@Category(IntegrationTest.class)
@RunWith(Cucumber.class)
@ContextConfiguration("classpath:cucumber-spring-beans.xml")
@CucumberOptions(snippets = SnippetType.CAMELCASE, strict = true, monochrome = true, tags = {"~@ManualTest", "~@SlowTest", "~@IgnoreTest", "~@AdHoc", "@IntegrationTest"},
features = {CucumberRunnerUtil.CukeFormat.FEATURE_FILE_LOCATION},
plugin = {"pretty", CucumberRunnerUtil.CukeFormat.CD_HTML_REPORT_INTEGRATION,
CucumberRunnerUtil.CukeFormat.CD_JSON_RESULTS_INTEGRATION + "integration-test-reports.json",
CucumberRunnerUtil.CukeFormat.CD_JUNIT_XML_REPORT_INTEGRATION + "integration-test-reports.xml"})
public class RunIntegrationCukeTest {
}
cucumber-spring-beans.xml:
<context:component-scan base-package="org.springframework.samples.mvc" />
<context:annotation-config/>
<context:annotation-config/>
<mvc:annotation-driven/>
<context:component-scan base-package="com...." >
<context:exclude-filter type="assignable" expression="com...."/>
</context:component-scan>
<context:component-scan base-package="com...." >
</context:component-scan>