JUnit -  Parameterized Test

JUnit - Parameterized Test

TutorialsPoint

7 лет назад

27,116 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Weidl01
@Weidl01 - 08.01.2018 08:55

i do this as you showed and compare the Errorcodes with the expected result.
return Arrays.asList(new Object[][] { { 0, "seats_error" }, {15, "seats_error"}, {8, "seats_error"}, {12000, "seats_error"}});

I always get an java.lang.IllegalArgumentException at java.lang.refelct.Contructor.newInstance(Constructor.java:423)
Error: argument type mismatch. i can't find a solution. casting the values to objects also doesn't help

Ответить
@namanmishra5544
@namanmishra5544 - 27.05.2018 20:03

All tutorials are really awesome. Really worked very well team. Thumbs Up.

Ответить
@yashdhamija2613
@yashdhamija2613 - 30.05.2019 04:14

I am running into initialization error:
"initializationError(tests.<<tests.....>>): No runnable methods
false."
Can you help?

Ответить