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 18a08cedd9
commit b43b20aa9b

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