@Test public void resolveMulePluginsTest() throws ProjectBuildingException, ValidationException { List<ArtifactCoordinates> actualResolvedMulePlugins = resolver.resolve(); assertThat("Number of resolved mule plugins is not the expected", actualResolvedMulePlugins.size(), equalTo(5)); assertThat("Not all resolved dependencies are mule plugins", actualResolvedMulePlugins.stream() .allMatch(dependency -> dependency.getClassifier().equals(MULE_PLUGIN_CLASSIFIER)), is(true)); }
public List<ArtifactCoordinates> resolve() throws ValidationException { dependencyRoot.accept(visitor); return newArrayList(visitor.getCollectedDependencies()); }
MulePluginResolver { public List<ArtifactCoordinates> resolve() throws ValidationException { dependencyRoot.accept(visitor); return newArrayList(visitor.getCollectedDependencies()); } }
MulePluginResolver { public List<ArtifactCoordinates> resolve() throws ValidationException { dependencyRoot.accept(visitor); return newArrayList(visitor.getCollectedDependencies()); } MulePluginResolver(ProjectBuilder builder, Project project);  MulePluginResolver(ProjectDependencyNode node, DependencyNodeVisitor visitor); }
MulePluginResolver { public List<ArtifactCoordinates> resolve() throws ValidationException { dependencyRoot.accept(visitor); return newArrayList(visitor.getCollectedDependencies()); } MulePluginResolver(ProjectBuilder builder, Project project);  MulePluginResolver(ProjectDependencyNode node, DependencyNodeVisitor visitor); List<ArtifactCoordinates> resolve(); }
MulePluginResolver { public List<ArtifactCoordinates> resolve() throws ValidationException { dependencyRoot.accept(visitor); return newArrayList(visitor.getCollectedDependencies()); } MulePluginResolver(ProjectBuilder builder, Project project);  MulePluginResolver(ProjectDependencyNode node, DependencyNodeVisitor visitor); List<ArtifactCoordinates> resolve();  }