标签: android methods if-statement while-loop break
如何停止测试(同时或如果)该方法并重新开始。
简而言之,如何停止测试方法并重新开始。 我试着调用方法Testex();更喜欢它不适用于其他方法。
答案 0 :(得分:1)
我会猜测并说这就是你想要的: http://www.junit.org/apidocs/org/junit/Assert.html
如果条件不成立,Assert将终止测试并导致测试失败。