junit-theory


JUnit @Theory : is there a way to throw meaningful exception?

五迷三道 提交于 2019-12-24 02:52:07
问题 I tried Junit @Theory test style recently : it's a really efficient way of testing. However, i not pleased with the exception that are thrown when a test fails. Example : import static org.junit.Assert.assertEquals; import org.junit.experimental.theories.DataPoint; import org.junit.experimental.theories.Theories; import org.junit.experimental.theories.Theory; import org.junit.runner.RunWith; @RunWith(Theories.class) public class TheoryAndExceptionTest { @DataPoint public static String

工具导航Map