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:
parthkaria 2017-05-24 01:10:46 +05:30 committed by maibin
parent cc2142b2a1
commit 2bfc5bd979
2 changed files with 1 additions and 9 deletions

View File

@ -1,7 +0,0 @@
package com.baeldung.classnotfoundexception;
public class ClassNotFoundExceptionExample {
public void loadDrivers() throws ClassNotFoundException {
Class.forName("oracle.jdbc.driver.OracleDriver");
}
}

View File

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