@Test public void shouldBeAbleToInstantiateABean() { this.picoContainer.addComponent(Fruit.class); assertThat(container.instanceFor(Fruit.class), is(notNullValue())); }
public <T> T instanceFor(Class<T> type) { return container.getComponent(type); }
PicoBasedContainer implements Container { public <T> T instanceFor(Class<T> type) { return container.getComponent(type); } }
PicoBasedContainer implements Container { public <T> T instanceFor(Class<T> type) { return container.getComponent(type); } PicoBasedContainer(MutablePicoContainer container); }
PicoBasedContainer implements Container { public <T> T instanceFor(Class<T> type) { return container.getComponent(type); } PicoBasedContainer(MutablePicoContainer container); T instanceFor(Class<T> type); boolean canProvide(Class<T> type); MutablePicoContainer getContainer(); }
PicoBasedContainer implements Container { public <T> T instanceFor(Class<T> type) { return container.getComponent(type); } PicoBasedContainer(MutablePicoContainer container); T instanceFor(Class<T> type); boolean canProvide(Class<T> type); MutablePicoContainer getContainer();  }