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:
parent
576d3c5f42
commit
10efba315d
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue