문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
groovy:unittest [2014/12/22 22:35] kwon37xi [shouldFail] |
groovy:unittest [2014/12/22 22:36] kwon37xi |
||
---|---|---|---|
줄 59: | 줄 59: | ||
</ | </ | ||
- | ===== shouldFail ===== | + | ===== shouldFail |
* [[http:// | * [[http:// | ||
<code groovy> | <code groovy> | ||
줄 67: | 줄 67: | ||
@Test | @Test | ||
void divideByZero() { | void divideByZero() { | ||
- | shouldFail(ArithmeticException) { | + | |
println 1/0 | println 1/0 | ||
} | } | ||
+ | assertEquals message, " | ||
} | } | ||
} | } | ||
</ | </ |