@Test(expected = RepositoryException.class) public void testAfterExtract_throws() throws Exception { final PackageId arg0 = PackageId.fromString("my_packages:example:1.0"); final Session arg1 = mock(Session.class); final ProgressCheck delegate = mock(ProgressCheck.class); doThrow(RepositoryException.class).when(delegate).afterExtract( any(PackageId.class), any(Session.class)); final SilencingCheckFacade alias = new SilencingCheckFacade(delegate); alias.afterExtract(arg0, arg1); }
@Override public void afterExtract(final PackageId packageId, final Session inspectSession) throws RepositoryException { if (!silenced) { wrapped.afterExtract(packageId, inspectSession); } }
SilencingCheckFacade implements SilenceableCheck { @Override public void afterExtract(final PackageId packageId, final Session inspectSession) throws RepositoryException { if (!silenced) { wrapped.afterExtract(packageId, inspectSession); } } }
SilencingCheckFacade implements SilenceableCheck { @Override public void afterExtract(final PackageId packageId, final Session inspectSession) throws RepositoryException { if (!silenced) { wrapped.afterExtract(packageId, inspectSession); } } SilencingCheckFacade(final @NotNull ProgressCheck wrapped); }
SilencingCheckFacade implements SilenceableCheck { @Override public void afterExtract(final PackageId packageId, final Session inspectSession) throws RepositoryException { if (!silenced) { wrapped.afterExtract(packageId, inspectSession); } } SilencingCheckFacade(final @NotNull ProgressCheck wrapped); @Override String getCheckName(); @Override @Nullable String getResourceBundleBaseName(); @Override void setResourceBundle(final ResourceBundle resourceBundle); @Override void setSilenced(final boolean silenced); @Override Collection<Violation> getReportedViolations(); @Override void simulateSling(final SlingSimulator slingSimulator, final Set<String> runModes); @Override void startedScan(); @Override void finishedScan(); @Override void identifyPackage(final PackageId packageId, final File file); @Override void readManifest(final PackageId packageId, final Manifest manifest); @Override void beforeExtract(final PackageId packageId, final Session inspectSession,
                              final PackageProperties packageProperties, final MetaInf metaInf,
                              final List<PackageId> subpackages); @Override void importedPath(final PackageId packageId, final String path, final Node node,
                             final PathAction action); @Override void deletedPath(final PackageId packageId, final String path, final Session inspectSession); @Override void afterExtract(final PackageId packageId, final Session inspectSession); @Override void identifySubpackage(final PackageId packageId, final PackageId parentId); @Override void beforeSlingInstall(final PackageId scanPackageId,
                                   final SlingInstallable slingInstallable,
                                   final Session inspectSession); @Override void identifyEmbeddedPackage(final PackageId packageId,
                                        final PackageId parentId,
                                        final EmbeddedPackageInstallable slingInstallable); @Override void appliedRepoInitScripts(final PackageId scanPackageId,
                                       final List<String> scripts,
                                       final SlingInstallable slingInstallable,
                                       final Session inspectSession); @Override void afterScanPackage(final PackageId scanPackageId, final Session inspectSession); }
SilencingCheckFacade implements SilenceableCheck { @Override public void afterExtract(final PackageId packageId, final Session inspectSession) throws RepositoryException { if (!silenced) { wrapped.afterExtract(packageId, inspectSession); } } SilencingCheckFacade(final @NotNull ProgressCheck wrapped); @Override String getCheckName(); @Override @Nullable String getResourceBundleBaseName(); @Override void setResourceBundle(final ResourceBundle resourceBundle); @Override void setSilenced(final boolean silenced); @Override Collection<Violation> getReportedViolations(); @Override void simulateSling(final SlingSimulator slingSimulator, final Set<String> runModes); @Override void startedScan(); @Override void finishedScan(); @Override void identifyPackage(final PackageId packageId, final File file); @Override void readManifest(final PackageId packageId, final Manifest manifest); @Override void beforeExtract(final PackageId packageId, final Session inspectSession,
                              final PackageProperties packageProperties, final MetaInf metaInf,
                              final List<PackageId> subpackages); @Override void importedPath(final PackageId packageId, final String path, final Node node,
                             final PathAction action); @Override void deletedPath(final PackageId packageId, final String path, final Session inspectSession); @Override void afterExtract(final PackageId packageId, final Session inspectSession); @Override void identifySubpackage(final PackageId packageId, final PackageId parentId); @Override void beforeSlingInstall(final PackageId scanPackageId,
                                   final SlingInstallable slingInstallable,
                                   final Session inspectSession); @Override void identifyEmbeddedPackage(final PackageId packageId,
                                        final PackageId parentId,
                                        final EmbeddedPackageInstallable slingInstallable); @Override void appliedRepoInitScripts(final PackageId scanPackageId,
                                       final List<String> scripts,
                                       final SlingInstallable slingInstallable,
                                       final Session inspectSession); @Override void afterScanPackage(final PackageId scanPackageId, final Session inspectSession);  }