Fixes test to run under JDK8

This commit is contained in:
Lukasz Lenart
2018-01-09 15:39:10 +01:00
parent f9f0f36d29
commit 4fbded7147
@@ -105,7 +105,7 @@ public class ContainerImplTest extends TestCase {
try {
c.inject(methodCheck);
fail("Exception should be thrown!");
} catch (Error expected) {
} catch (DependencyException | Error expected) {
assertTrue(true);
}
}