2016-05-02 58 views
0

我正在嘗試爲使用黃瓜的DAO編寫集成測試。 當我嘗試添加以下依賴黃瓜 - 春天依賴問題

<dependency> 
    <groupId>info.cukes</groupId> 
    <artifactId>cucumber-spring</artifactId> 
    <version>1.1.5</version> 
</dependency> 

我收到以下錯誤。

Error message

當我拿出春天的依賴,特徵文件正在運行,並且生成步驟定義,但我無法Spring Bean注入到步定義。

有任何建議。 感謝

+0

請在你的問題中輸入錯誤的文字。對於有同樣問題的人來說,圖像是不可能找到的。 –

回答

0

做你的依賴是這個樣子(對不起,沒有搖籃Maven的):

compile 'info.cukes:cucumber-java8:1.2.3' 
compile 'info.cukes:cucumber-junit:1.2.3' 
compile 'info.cukes:cucumber-spring:1.2.3' 
compile 'info.cukes:cucumber-java:1.2.3' 
compile 'junit:junit:4.12' 
compile 'org.springframework:spring-beans:4.1.1.RELEASE' 
compile 'org.springframework:spring-context:4.1.1.RELEASE' 
compile 'org.springframework:spring-test:4.1.1.RELEASE' 
compile 'org.springframework:spring-jdbc:4.1.1.RELEASE' 
compile 'org.springframework:spring-web:4.1.1.RELEASE' 
compile 'org.jasypt:jasypt-spring31:1.9.2' 
compile 'com.fasterxml.jackson.core:jackson-core:2.6.3' 
compile 'com.fasterxml.jackson.core:jackson-databind:2.6.3' 

/* Selenium */ 
compile 'org.seleniumhq.selenium:selenium-java:2.50.1' 
compile 'org.seleniumhq.selenium:selenium-chrome-driver:2.50.1' 
compile 'org.seleniumhq.selenium:selenium-support:2.50.1' 


/* MDSC */ 
compile 'log4j:log4j:1.2.17' 
compile 'org.codehaus.jackson:jackson-mapper-lgpl:1.9.13' 

/* Apache Commons DBCP software implements Database Connection Pooling */ 
compile 'org.apache.commons:commons-dbcp2:2.0'