BAEL-3504: Added blank lines before when and then in unit test

This commit is contained in:
Vikas Ramsingh Rajput 2020-01-19 11:56:33 +03:00
parent 3771a056b3
commit 910ac808c8
1 changed files with 3 additions and 0 deletions

View File

@ -12,9 +12,12 @@ public class InvocationTargetUnitTest {
@Test
public void whenCallingMethodThrowsException_thenAssertCauseOfInvocationTargetException() throws Exception {
InvocationTargetExample targetExample = new InvocationTargetExample();
Method method = InvocationTargetExample.class.getMethod("divideByZeroExample");
Exception exception = assertThrows(InvocationTargetException.class, () -> method.invoke(targetExample));
assertEquals(ArithmeticException.class, exception.getCause().getClass());
}
}