Код: Выделить всё
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
@RunWith(Parameterized.class)
public class LocaleTest {
@Parameterized.Parameters(name = "{index}: Locale={0}, valid={1}")
public static Collection opt() {
Object[][] options = new Object[][]{{"os_PT", true}, {"en_PH", true}......};
return Arrays.asList(options);
}
}
Код: Выделить всё
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
@ExtendWith(Parameterized.class)
public class LocaleTest {
@Parameterized.Parameters(name = "{index}: Locale={0}, valid={1}")
public static Collection opt() {
Object[][] options = new Object[][]{{"os_PT", true}, {"en_PH", true}......};
return Arrays.asList(options);
}
}
Код: Выделить всё
Incompatible types. Found: 'java. lang. Class', required: 'java. lang. Class
Подробнее здесь: [url]https://stackoverflow.com/questions/79170368/incompatible-types-found-java-lang-classorg-junit-runners-parameterized[/url]