簡體   English   中英

在Eclipse Oxygen中找不到“結果比較”對話框

[英]Can't find “Result Comparison” dialog in Eclipse Oxygen

下面的頁面(向下滾動到Assertions子標題)是一個“結果比較”對話框,用於比較JUnit 5測試的預期和實際輸出。 我找不到 有人可以指出我嗎? 在“故障跟蹤”視圖中,有一個“將實際值與預期的測試結果進行比較”按鈕,但該按鈕顯示為灰色。

https://www.eclipse.org/community/eclipse_newsletter/2017/october/article5.php

在Eclipse Oxygen 4.7.1a中 ,執行以下測試時,我只需在JUnit視圖的“ 失敗跟蹤”面板中雙擊第一行,就會打開“ 結果比較”窗口。

@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")
    );
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM