@Test public void returns_instance_passed_in() { Filter filter = mock(Filter.class); FilterProvider filterProvider = new FilterProvider(filter); assertThat(filterProvider.get(), is(filter)); }
@Override public Filter get() { return filter; }
FilterProvider implements Provider<Filter> { @Override public Filter get() { return filter; } }
FilterProvider implements Provider<Filter> { @Override public Filter get() { return filter; } FilterProvider(Filter filter); }
FilterProvider implements Provider<Filter> { @Override public Filter get() { return filter; } FilterProvider(Filter filter); @Override Filter get(); }
FilterProvider implements Provider<Filter> { @Override public Filter get() { return filter; } FilterProvider(Filter filter); @Override Filter get();  }