@Test public void testProviderReturnsEmptyListWithoutPath() throws Exception { Injector injector = fixtures.initializeFixtures().injector(); SimpleConnectorProvider provider = injector.getProvider(SimpleConnectorProvider.class).get(); List<EndpointConnector> connectors = provider.get(); assertThat(connectors, notNullValue()); assertThat(connectors, empty()); }
@Override public List<EndpointConnector> get() { return connectors; }
SimpleConnectorProvider implements Provider<List<EndpointConnector>> { @Override public List<EndpointConnector> get() { return connectors; } }
SimpleConnectorProvider implements Provider<List<EndpointConnector>> { @Override public List<EndpointConnector> get() { return connectors; } @Inject  SimpleConnectorProvider(AppConfig appConfig, ObjectMapper mapper); }
SimpleConnectorProvider implements Provider<List<EndpointConnector>> { @Override public List<EndpointConnector> get() { return connectors; } @Inject  SimpleConnectorProvider(AppConfig appConfig, ObjectMapper mapper); @Override List<EndpointConnector> get(); }
SimpleConnectorProvider implements Provider<List<EndpointConnector>> { @Override public List<EndpointConnector> get() { return connectors; } @Inject  SimpleConnectorProvider(AppConfig appConfig, ObjectMapper mapper); @Override List<EndpointConnector> get();  }