Skip to content

Commit b7ffef7

Browse files
BAEL-3504: Update core-java-modules/core-java-reflection/src/test/java/com/baeldung/reflection/exception/invocationtarget/InvocationTargetUnitTest.java
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
1 parent e19c356 commit b7ffef7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core-java-modules/core-java-reflection/src/test/java/com/baeldung/reflection/exception/invocationtarget/InvocationTargetUnitTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
public class InvocationTargetUnitTest {
1212

1313
@Test
14-
public void whenCallingMethodThrowsException_thenAssertTrue() throws Exception {
14+
public void whenCallingMethodThrowsException_thenAssertCauseOfInvocationTargetException() throws Exception {
1515
InvocationTargetExample targetExample = new InvocationTargetExample();
1616
Method method = InvocationTargetExample.class.getMethod("divideByZeroExample");
1717
Exception exception = assertThrows(InvocationTargetException.class, () -> method.invoke(targetExample));

0 commit comments

Comments
 (0)