Update core-java-modules/core-java-lang-3/src/test/java/com/baeldung/checkclassexistence/CheckClassExistenceUnitTest.java

Co-authored-by: KevinGilmore <kpg102@gmail.com>
This commit is contained in:
Jordan Simpson 2020-09-09 08:18:51 -05:00 committed by GitHub
parent 576d3c5f42
commit 10efba315d
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public class CheckClassExistenceUnitTest {
}
@Test(expected = ExceptionInInitializerError.class) //thrown when exception occurs inside of a static initialization block
public void givenInitializingClass_whenUsingForName_initializationError() throws ClassNotFoundException {
public void givenInitializingClass_whenUsingForName_thenInitializationError() throws ClassNotFoundException {
Class.forName("com.baeldung.checkclassexistence.CheckClassExistenceUnitTest$InitializingClass");
}