第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

JUnit assertFalse(false) 找不到 BooleanSupplier

JUnit assertFalse(false) 找不到 BooleanSupplier

MMTTMM 2023-03-09 15:07:09
我正在嘗試測(cè)試我正在使用 JUnit5 設(shè)計(jì)的庫(kù)。我已經(jīng)到了需要斷言某事為假的地步,但是每當(dāng)我嘗試使用assertFalse(...).我將 JUnit 5.2 與 Gradle 5.1.1 一起使用,并嘗試了適合我需要的 assertFalse() 方法簽名但無(wú)濟(jì)于事。這包括僅使用布爾條件、使用條件加消息、用于Assertions.assertFalse(...)刪除靜態(tài)導(dǎo)入等。我已經(jīng)能夠?qū)⒋a縮小到一個(gè)簡(jiǎn)單的測(cè)試。下面的代碼失?。篅Testvoid test(){    assertFalse(false);}我的進(jìn)口是:import org.junit.jupiter.api.Test;import static org.junit.jupiter.api.Assertions.assertEquals;import static org.junit.jupiter.api.Assertions.assertFalse;//plus some others from the libraryGradle 報(bào)錯(cuò):ProjectDir/FTC_Robot_API/TeamCode/src/test/java/org/firstinspires/ftc/teamcode/FTC_Library/Robot/RobotBaseTest.java:28: error: cannot access BooleanSupplier        assertFalse(false);        ^  class file for java.util.function.BooleanSupplier not found1 error我希望顯然是 boolean ( false) 的不是 BooleanSupplier,所以我對(duì)它為什么會(huì)給我這個(gè)錯(cuò)誤感到困惑。任何幫助表示贊賞
查看完整描述

1 回答

?
動(dòng)漫人物

TA貢獻(xiàn)1815條經(jīng)驗(yàn) 獲得超10個(gè)贊

我在使用 IntelliJ 時(shí)遇到了同樣的問題。解決它

  1. 刪除 IntelliJ 項(xiàng)目文件(例如.iml 和.idea文件)

  2. 關(guān)閉項(xiàng)目

  3. 從 IntelliJ 歡迎屏幕中選擇“導(dǎo)入項(xiàng)目”

http://img1.sycdn.imooc.com//640985df00015e8b06530372.jpg

  1. 選擇“來自現(xiàn)有資源的項(xiàng)目”

  2. 按照提示設(shè)置項(xiàng)目。有關(guān)更多信息,請(qǐng)參閱 IntelliJ 網(wǎng)站:jetbrains.com/help/idea/import-project-or-module-wizard.html



查看完整回答
反對(duì) 回復(fù) 2023-03-09
  • 1 回答
  • 0 關(guān)注
  • 166 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)