@Test public void getDependenciesEmpty() { final MavenSession mavenSession = mockMavenSession(false); final ProjectPomModel pomModel = new ProjectPomModel(mavenSession); final Collection<AFReleaseId> dependencies = pomModel.getDependencies(); assertThat(dependencies).isNotNull().isEmpty(); }
@Override public Collection<AFReleaseId> getDependencies() { return dependenciesByScope.values() .stream() .flatMap(Collection::stream) .collect(Collectors.toList()); }
ProjectPomModel implements PomModel { @Override public Collection<AFReleaseId> getDependencies() { return dependenciesByScope.values() .stream() .flatMap(Collection::stream) .collect(Collectors.toList()); } }
ProjectPomModel implements PomModel { @Override public Collection<AFReleaseId> getDependencies() { return dependenciesByScope.values() .stream() .flatMap(Collection::stream) .collect(Collectors.toList()); } ProjectPomModel(final MavenSession mavenSession); }
ProjectPomModel implements PomModel { @Override public Collection<AFReleaseId> getDependencies() { return dependenciesByScope.values() .stream() .flatMap(Collection::stream) .collect(Collectors.toList()); } ProjectPomModel(final MavenSession mavenSession); @Override AFReleaseId getReleaseId(); @Override AFReleaseId getParentReleaseId(); @Override Collection<AFReleaseId> getDependencies(); @Override Collection<AFReleaseId> getDependencies(final DependencyFilter filter); }
ProjectPomModel implements PomModel { @Override public Collection<AFReleaseId> getDependencies() { return dependenciesByScope.values() .stream() .flatMap(Collection::stream) .collect(Collectors.toList()); } ProjectPomModel(final MavenSession mavenSession); @Override AFReleaseId getReleaseId(); @Override AFReleaseId getParentReleaseId(); @Override Collection<AFReleaseId> getDependencies(); @Override Collection<AFReleaseId> getDependencies(final DependencyFilter filter);  }