Spring2.5測試問題

舊版junit4可能出現的問題
I have a JUnit 4 test class in Eclipse Ganymede that has the following annotations :

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:/applicationContext.xml"})
public class TestSybaseDao extends TestCase {

This annotation gives compilation error "Type mismatch: cannot convert from Class<SpringJUnit4ClassRunner> to Class<? extends Runner>

How can I resolve this problem? Thanks.

解決方法
http://forum.springsource.org/showthread.php?t=70834
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章