BAEL-831 Updated examples (#1904)
* Dependency Injection examples Dependency Injection examples for evaluation article * Junit test cases added for dependency injection Junit test cases added for dependency injection * ClassNotFoundException vs NoClassDefFoundError Example to reproduce ClassNotFoundException & NoClassDefFoundError * JUnit test cases for ClassNotFoundException & NoClassDefFoundError test cases to reproduce ClassNotFoundException & NoClassDefFoundError * Deleting exampls for evaluation article * BAEL-831 Examples for ClassNotFoundException & NoClassDefFoundError * BAEL-831 Removed wrapper class * Removing evaluation article example * BAEL-831 removed wrapper class
This commit is contained in:
parent
cc2142b2a1
commit
2bfc5bd979
|
@ -1,7 +0,0 @@
|
|||
package com.baeldung.classnotfoundexception;
|
||||
|
||||
public class ClassNotFoundExceptionExample {
|
||||
public void loadDrivers() throws ClassNotFoundException {
|
||||
Class.forName("oracle.jdbc.driver.OracleDriver");
|
||||
}
|
||||
}
|
|
@ -6,7 +6,6 @@ public class ClassNotFoundExceptionTest {
|
|||
|
||||
@Test(expected = ClassNotFoundException.class)
|
||||
public void givenNoDriversInClassPath_whenLoadDrivers_thenClassNotFoundException() throws ClassNotFoundException {
|
||||
ClassNotFoundExceptionExample test = new ClassNotFoundExceptionExample();
|
||||
test.loadDrivers();
|
||||
Class.forName("oracle.jdbc.driver.OracleDriver");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue