PackageGraph implements ProgressCheck { @Override public Collection<Violation> getReportedViolations() { return Collections.emptyList(); }  @Override Collection<Violation> getReportedViolations(); @Override void startedScan(); @Override void identifyPackage(final PackageId packageId, final File file); @Override void identifySubpackage(final PackageId packageId, final PackageId parentId); @Override void identifyEmbeddedPackage(final PackageId packageId, final PackageId parentId,
                                        final EmbeddedPackageInstallable slingInstallable); boolean isIdentified(final @NotNull PackageId packageId); @Nullable PackageId getLastIdentified(); boolean isRoot(final @NotNull PackageId packageId); boolean isLeftDescendantOfRight(final @NotNull PackageId left, final @NotNull PackageId right); Collection<PackageId> getSelfAndAncestors(final @NotNull PackageId self); Collection<PackageId> getSelfAndDescendants(final @NotNull PackageId self);  }
@Test public void testGetReportedViolations() { graph.finishedScan(); assertEquals("expect no violations", Collections.emptyList(), graph.getReportedViolations()); graph.startedScan(); assertEquals("expect no violations after startedScan", Collections.emptyList(), graph.getReportedViolations()); }