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
b27e6a0470
commit
1624cd3387
|
@ -13,7 +13,7 @@ public class CheckClassExistenceUnitTest {
|
|||
}
|
||||
|
||||
@Test(expected = ClassNotFoundException.class) //thrown when class does not exist
|
||||
public void givenNonExistingClass_whenUsingForName_classNotFound() throws ClassNotFoundException {
|
||||
public void givenNonExistingClass_whenUsingForName_thenClassNotFound() throws ClassNotFoundException {
|
||||
Class.forName("class.that.does.not.exist");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue