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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

和老師的一樣,這段代碼能運(yùn)行,但是測(cè)試結(jié)果是錯(cuò)誤的

import static org.junit.jupiter.api.Assertions.*;


import java.util.Arrays;

import java.util.Collection;

import org.junit.jupiter.api.Test;

import org.junit.runner.RunWith;

import org.junit.runners.Parameterized;

import org.junit.runners.Parameterized.Parameters;


@RunWith(Parameterized.class)

class ParameterTest {

int expected = 0;

int input1 = 0;

int input2 = 0;


@Parameters

public static Collection<Object[]> t() {

return Arrays.asList(new Object[][] { { 3, 1, 2 }, { 4, 2, 2 } });

}


public ParameterTest(int expected, int input1, int input2) {

this.expected = expected;

this.input1 = input1;

this.input2 = input2;

}


@Test

public void testAdd() {

assertEquals(expected, new Calculate().add(input1, input2));

}


}


正在回答

4 回答

因?yàn)槟阌玫膉unit5,junit5里面沒(méi)有參數(shù)解析器

0 回復(fù) 有任何疑惑可以回復(fù)我~

有人知道什么錯(cuò)誤了嗎?


0 回復(fù) 有任何疑惑可以回復(fù)我~

我的也是不能運(yùn)行

Errors:

org.junit.jupiter.api.extension.ParameterResolutionException: No ParameterResolver registered for parameter [int arg0] in executable [public com.CalculateTest.ParameteriTest(int,int,int)].

2 回復(fù) 有任何疑惑可以回復(fù)我~
#1

慕容2016289

知道為什么錯(cuò)了嗎???我也遇到這個(gè)問(wèn)題了。。。。求解答
2019-11-17 回復(fù) 有任何疑惑可以回復(fù)我~

public class ParameterTest {}


????

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

和老師的一樣,這段代碼能運(yùn)行,但是測(cè)試結(jié)果是錯(cuò)誤的

我要回答 關(guān)注問(wèn)題
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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