【发布时间】:2010-12-03 04:43:13
【问题描述】:
我正在尝试在 Eclipse 中调试 junit 测试,但我的断点没有触发(除非它们位于第一行或第二行)。
我已尝试删除并重新创建工作区中的所有断点、清理项目、创建新的调试配置,以及单独运行测试方法以及作为测试类的一部分与其他方法一起运行。但一切都无济于事:-(
public void testLoadPatientsAndConvertToBeans() throws IOException, CDataGridException {
File file = fileutil.getFileFromPrefsOrPrompt(basefileDef);
CDataBuilder builder = new CDataDelimitedFileBuilder(file,
CDataDelimitedFileBuilder.DelimiterSettings.WINDOWS_CSV,
basefileDef);
// breakpoints placed on lines from here on do not fire
CDataCacheContainer container =
cacheIO.construct(
new CDataNarrower(
cacheIO.construct(builder)
).setConvertMissing(true));
assertEquals(13548, container.size());
cacheIO.export(container, patients);
Collection<Patient> pBeans = patients.getBeans();
assertEquals(container.size(), pBeans.size());
Patient patient = pBeans.iterator().next();
Map props = patient.getPropertyMap();
System.out.println(props);
}
【问题讨论】:
标签: java eclipse debugging junit