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:38 -05:00 committed by GitHub
parent b27e6a0470
commit 1624cd3387
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}