Update core-java-modules/core-java-lang-3/src/test/java/com/baeldung/checkclassexistence/CheckClassExistenceUnitTest.java
Co-authored-by: KevinGilmore <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
KevinGilmore
parent
b27e6a0470
commit
1624cd3387
+1
-1
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user