@Test(expected = RuntimeException.class) public void componentLookupExceptionIsCaughtAndRuntimeExceptionIsThrown() throws ComponentLookupException { doThrow(new ComponentLookupException("test")).when(this.componentManager).getInstanceList( AuditEventProcessor.class); this.mocker.getComponentUnderTest().get(); }
@Override public List<AuditEventProcessor> get() { try { return this.componentManager.<AuditEventProcessor>getInstanceList(AuditEventProcessor.class); } catch (ComponentLookupException ex) { throw new RuntimeException("Failed to look up audit event processors", ex); } }
AuditEventProcessorsListProvider implements Provider<List<AuditEventProcessor>> { @Override public List<AuditEventProcessor> get() { try { return this.componentManager.<AuditEventProcessor>getInstanceList(AuditEventProcessor.class); } catch (ComponentLookupException ex) { throw new RuntimeException("Failed to look up audit event processors", ex); } } }
AuditEventProcessorsListProvider implements Provider<List<AuditEventProcessor>> { @Override public List<AuditEventProcessor> get() { try { return this.componentManager.<AuditEventProcessor>getInstanceList(AuditEventProcessor.class); } catch (ComponentLookupException ex) { throw new RuntimeException("Failed to look up audit event processors", ex); } }  }
AuditEventProcessorsListProvider implements Provider<List<AuditEventProcessor>> { @Override public List<AuditEventProcessor> get() { try { return this.componentManager.<AuditEventProcessor>getInstanceList(AuditEventProcessor.class); } catch (ComponentLookupException ex) { throw new RuntimeException("Failed to look up audit event processors", ex); } }  @Override List<AuditEventProcessor> get(); }
AuditEventProcessorsListProvider implements Provider<List<AuditEventProcessor>> { @Override public List<AuditEventProcessor> get() { try { return this.componentManager.<AuditEventProcessor>getInstanceList(AuditEventProcessor.class); } catch (ComponentLookupException ex) { throw new RuntimeException("Failed to look up audit event processors", ex); } }  @Override List<AuditEventProcessor> get();  }