@Test public void allProcessorsAreReturned() throws Exception { List<AuditEventProcessor> actualList = this.mocker.getComponentUnderTest().get(); Assert.assertEquals(2, actualList.size()); Assert.assertTrue(actualList.contains(this.processor1)); Assert.assertTrue(actualList.contains(this.processor2)); }
@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();  }