@Test public void test_provide_facet_dependencies_never_return_null() { List<Facet2> dependencies = underTest.getFacets(WithDepsPlugin.class, Facet2.class); Assertions.assertThat(dependencies).isNotNull(); }
public <T> List<T> getFacets(Class<? extends Plugin> pluginClass, Class<T> facet) { assertExplicitDependency(pluginClass, facet); return facetRegistry.getFacets(facet); }
DependencyProvider { public <T> List<T> getFacets(Class<? extends Plugin> pluginClass, Class<T> facet) { assertExplicitDependency(pluginClass, facet); return facetRegistry.getFacets(facet); } }
DependencyProvider { public <T> List<T> getFacets(Class<? extends Plugin> pluginClass, Class<T> facet) { assertExplicitDependency(pluginClass, facet); return facetRegistry.getFacets(facet); } DependencyProvider(PluginRegistry pluginRegistry, FacetRegistry facetRegistry); }
DependencyProvider { public <T> List<T> getFacets(Class<? extends Plugin> pluginClass, Class<T> facet) { assertExplicitDependency(pluginClass, facet); return facetRegistry.getFacets(facet); } DependencyProvider(PluginRegistry pluginRegistry, FacetRegistry facetRegistry); List<Plugin> getDependenciesOf(Class<? extends Plugin> pluginClass); List<Plugin> getRequiredPluginsOf(Class<? extends Plugin> pluginClass); List<Plugin> getDependentPluginsOf(Class<? extends Plugin> pluginClass); List<T> getFacets(Class<? extends Plugin> pluginClass, Class<T> facet); T getFacet(Class<? extends Plugin> pluginClass, Class<T> facet); }
DependencyProvider { public <T> List<T> getFacets(Class<? extends Plugin> pluginClass, Class<T> facet) { assertExplicitDependency(pluginClass, facet); return facetRegistry.getFacets(facet); } DependencyProvider(PluginRegistry pluginRegistry, FacetRegistry facetRegistry); List<Plugin> getDependenciesOf(Class<? extends Plugin> pluginClass); List<Plugin> getRequiredPluginsOf(Class<? extends Plugin> pluginClass); List<Plugin> getDependentPluginsOf(Class<? extends Plugin> pluginClass); List<T> getFacets(Class<? extends Plugin> pluginClass, Class<T> facet); T getFacet(Class<? extends Plugin> pluginClass, Class<T> facet);  }