下面的页面(向下滚动到Assertions副标题)引用了一个结果比较对话框,用于比较JUnit 5测试的预期输出和实际输出。我找不到了。有人能指给我看吗?在Failure Trace视图中,有一个"Compare Actual with Expected Result“按钮,但它是灰色的。
https://www.eclipse.org/community/eclipse_newsletter/2017/october/article5.php
发布于 2017-11-29 22:08:53
在Eclipse Oxygen 4.7.1a中,当执行以下测试时,我只需在JUnit视图中双击Failure Trace面板中的第一行,结果比较窗口就会打开。
@org.junit.jupiter.api.Test
void groupedAssertions() {
org.junit.jupiter.api.Assertions.assertAll(
() -> org.junit.jupiter.api.Assertions.assertEquals("Johnny", "John"),
() -> org.junit.jupiter.api.Assertions.assertEquals("Dep", "Doe")
);
}https://stackoverflow.com/questions/47536480
复制相似问题