reconized我有一个测试的情况下,它看起来像下面春天junits没有在Eclipse
@ContextConfiguration(locations = { "classpath:chartContext-test.xml" })
@Component("allocationChartTest")
public class ChartServiceUnitTest extends AbstractTestNGSpringContextTests {
,我有进口看起来像下面
org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
所以基本上我用弹簧junits它与junit 4或3无关 当我右键点击该类时,它不会给出一个名为run的选项作为junit 不确定需要添加什么scr/mian/java和src/main/test都包含在内在我的来源.. 可以有人给出一个想法,为什么它给我一个选项..
完整的例子请.. – smk