test_class.file: core/src/test/java/net/adamcin/oakpal/core/SilencingCheckFacadeTest.java
test_class.identifier: SilencingCheckFacadeTest
test_case.body: @Test
      public void testImportedPath() throws Exception {
          final PackageId arg0 = PackageId.fromString("my_packages:example:1.0");
          final String arg1 = "/correct/path";
          final Node arg2 = mock(Node.class);
          final PathAction arg3 = PathAction.MODIFIED;
  
          final CompletableFuture<PackageId> slot0 = new CompletableFuture<>();
          final CompletableFuture<String> slot1 = new CompletableFuture<>();
          final CompletableFuture<Node> slot2 = new CompletableFuture<>();
          final CompletableFuture<PathAction> slot3 = new CompletableFuture<>();
  
          final ProgressCheck delegate = mock(ProgressCheck.class);
  
          doAnswer(call -> {
              slot0.complete(call.getArgument(0, PackageId.class));
              slot1.complete(call.getArgument(1, String.class));
              slot2.complete(call.getArgument(2, Node.class));
              slot3.complete(call.getArgument(3, PathAction.class));
              return true;
          }).when(delegate).importedPath(
                  any(PackageId.class),
                  any(String.class),
                  any(Node.class),
                  any(PathAction.class));
  
          final SilencingCheckFacade alias = new SilencingCheckFacade(delegate);
          alias.setSilenced(true);
          alias.importedPath(arg0, arg1, arg2, arg3);
  
          assertFalse("arg0 should not be done", slot0.isDone());
          assertFalse("arg1 should not be done", slot1.isDone());
          assertFalse("arg2 should not be done", slot2.isDone());
          assertFalse("arg3 should not be done", slot3.isDone());
  
          alias.setSilenced(false);
          alias.importedPath(arg0, arg1, arg2, arg3);
  
          assertSame("same arg0", arg0, slot0.getNow(null));
          assertSame("same arg1", arg1, slot1.getNow(null));
          assertSame("same arg2", arg2, slot2.getNow(null));
          assertSame("same arg3", arg3, slot3.getNow(null));
      }
test_case.class_method_signature: SilencingCheckFacadeTest.testImportedPath()
test_case.full_signature: @Test public void testImportedPath()
test_case.identifier: testImportedPath
test_case.invocations: fromString mock mock importedPath when doAnswer complete getArgument complete getArgument complete getArgument complete getArgument any any any any setSilenced importedPath assertFalse isDone assertFalse isDone assertFalse isDone assertFalse isDone setSilenced importedPath assertSame getNow assertSame getNow assertSame getNow assertSame getNow
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testImportedPath()
focal_class.declarator: wrapped
focal_class.modifier: private final
focal_class.original_string: private final ProgressCheck wrapped;
focal_class.type: ProgressCheck
focal_class.var_name: wrapped
focal_class.declarator: silenced
focal_class.modifier: private
focal_class.original_string: private boolean silenced;
focal_class.type: boolean
focal_class.var_name: silenced
focal_class.file: core/src/main/java/net/adamcin/oakpal/core/SilencingCheckFacade.java
focal_class.identifier: SilencingCheckFacade
focal_class.interfaces: implements SilenceableCheck
focal_class.class_method_signature: SilencingCheckFacade.SilencingCheckFacade(final @NotNull ProgressCheck wrapped)
focal_class.full_signature:   SilencingCheckFacade(final @NotNull ProgressCheck wrapped)
focal_class.identifier: SilencingCheckFacade
focal_class.parameters: (final @NotNull ProgressCheck wrapped)
focal_class.signature:  SilencingCheckFacade(final @NotNull ProgressCheck wrapped)
focal_class.class_method_signature: SilencingCheckFacade.getCheckName()
focal_class.full_signature: @Override public String getCheckName()
focal_class.identifier: getCheckName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCheckName()
focal_class.class_method_signature: SilencingCheckFacade.getResourceBundleBaseName()
focal_class.full_signature: @Override public @Nullable String getResourceBundleBaseName()
focal_class.identifier: getResourceBundleBaseName
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getResourceBundleBaseName()
focal_class.class_method_signature: SilencingCheckFacade.setResourceBundle(final ResourceBundle resourceBundle)
focal_class.full_signature: @Override public void setResourceBundle(final ResourceBundle resourceBundle)
focal_class.identifier: setResourceBundle
focal_class.modifiers: @Override public
focal_class.parameters: (final ResourceBundle resourceBundle)
focal_class.return: void
focal_class.signature: void setResourceBundle(final ResourceBundle resourceBundle)
focal_class.class_method_signature: SilencingCheckFacade.setSilenced(final boolean silenced)
focal_class.full_signature: @Override public void setSilenced(final boolean silenced)
focal_class.identifier: setSilenced
focal_class.modifiers: @Override public
focal_class.parameters: (final boolean silenced)
focal_class.return: void
focal_class.signature: void setSilenced(final boolean silenced)
focal_class.class_method_signature: SilencingCheckFacade.getReportedViolations()
focal_class.full_signature: @Override public Collection<Violation> getReportedViolations()
focal_class.identifier: getReportedViolations
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<Violation>
focal_class.signature: Collection<Violation> getReportedViolations()
focal_class.class_method_signature: SilencingCheckFacade.simulateSling(final SlingSimulator slingSimulator, final Set<String> runModes)
focal_class.full_signature: @Override public void simulateSling(final SlingSimulator slingSimulator, final Set<String> runModes)
focal_class.identifier: simulateSling
focal_class.modifiers: @Override public
focal_class.parameters: (final SlingSimulator slingSimulator, final Set<String> runModes)
focal_class.return: void
focal_class.signature: void simulateSling(final SlingSimulator slingSimulator, final Set<String> runModes)
focal_class.class_method_signature: SilencingCheckFacade.startedScan()
focal_class.full_signature: @Override public void startedScan()
focal_class.identifier: startedScan
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void startedScan()
focal_class.class_method_signature: SilencingCheckFacade.finishedScan()
focal_class.full_signature: @Override public void finishedScan()
focal_class.identifier: finishedScan
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void finishedScan()
focal_class.class_method_signature: SilencingCheckFacade.identifyPackage(final PackageId packageId, final File file)
focal_class.full_signature: @Override public void identifyPackage(final PackageId packageId, final File file)
focal_class.identifier: identifyPackage
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId packageId, final File file)
focal_class.return: void
focal_class.signature: void identifyPackage(final PackageId packageId, final File file)
focal_class.class_method_signature: SilencingCheckFacade.readManifest(final PackageId packageId, final Manifest manifest)
focal_class.full_signature: @Override public void readManifest(final PackageId packageId, final Manifest manifest)
focal_class.identifier: readManifest
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId packageId, final Manifest manifest)
focal_class.return: void
focal_class.signature: void readManifest(final PackageId packageId, final Manifest manifest)
focal_class.class_method_signature: SilencingCheckFacade.beforeExtract(final PackageId packageId, final Session inspectSession,
                                final PackageProperties packageProperties, final MetaInf metaInf,
                                final List<PackageId> subpackages)
focal_class.full_signature: @Override public void beforeExtract(final PackageId packageId, final Session inspectSession,
                                final PackageProperties packageProperties, final MetaInf metaInf,
                                final List<PackageId> subpackages)
focal_class.identifier: beforeExtract
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId packageId, final Session inspectSession,
                                final PackageProperties packageProperties, final MetaInf metaInf,
                                final List<PackageId> subpackages)
focal_class.return: void
focal_class.signature: void beforeExtract(final PackageId packageId, final Session inspectSession,
                                final PackageProperties packageProperties, final MetaInf metaInf,
                                final List<PackageId> subpackages)
focal_class.class_method_signature: SilencingCheckFacade.importedPath(final PackageId packageId, final String path, final Node node,
                               final PathAction action)
focal_class.full_signature: @Override public void importedPath(final PackageId packageId, final String path, final Node node,
                               final PathAction action)
focal_class.identifier: importedPath
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId packageId, final String path, final Node node,
                               final PathAction action)
focal_class.return: void
focal_class.signature: void importedPath(final PackageId packageId, final String path, final Node node,
                               final PathAction action)
focal_class.class_method_signature: SilencingCheckFacade.deletedPath(final PackageId packageId, final String path, final Session inspectSession)
focal_class.full_signature: @Override public void deletedPath(final PackageId packageId, final String path, final Session inspectSession)
focal_class.identifier: deletedPath
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId packageId, final String path, final Session inspectSession)
focal_class.return: void
focal_class.signature: void deletedPath(final PackageId packageId, final String path, final Session inspectSession)
focal_class.class_method_signature: SilencingCheckFacade.afterExtract(final PackageId packageId, final Session inspectSession)
focal_class.full_signature: @Override public void afterExtract(final PackageId packageId, final Session inspectSession)
focal_class.identifier: afterExtract
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId packageId, final Session inspectSession)
focal_class.return: void
focal_class.signature: void afterExtract(final PackageId packageId, final Session inspectSession)
focal_class.class_method_signature: SilencingCheckFacade.identifySubpackage(final PackageId packageId, final PackageId parentId)
focal_class.full_signature: @Override public void identifySubpackage(final PackageId packageId, final PackageId parentId)
focal_class.identifier: identifySubpackage
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId packageId, final PackageId parentId)
focal_class.return: void
focal_class.signature: void identifySubpackage(final PackageId packageId, final PackageId parentId)
focal_class.class_method_signature: SilencingCheckFacade.beforeSlingInstall(final PackageId scanPackageId,
                                     final SlingInstallable slingInstallable,
                                     final Session inspectSession)
focal_class.full_signature: @Override public void beforeSlingInstall(final PackageId scanPackageId,
                                     final SlingInstallable slingInstallable,
                                     final Session inspectSession)
focal_class.identifier: beforeSlingInstall
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId scanPackageId,
                                     final SlingInstallable slingInstallable,
                                     final Session inspectSession)
focal_class.return: void
focal_class.signature: void beforeSlingInstall(final PackageId scanPackageId,
                                     final SlingInstallable slingInstallable,
                                     final Session inspectSession)
focal_class.class_method_signature: SilencingCheckFacade.identifyEmbeddedPackage(final PackageId packageId,
                                          final PackageId parentId,
                                          final EmbeddedPackageInstallable slingInstallable)
focal_class.full_signature: @Override public void identifyEmbeddedPackage(final PackageId packageId,
                                          final PackageId parentId,
                                          final EmbeddedPackageInstallable slingInstallable)
focal_class.identifier: identifyEmbeddedPackage
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId packageId,
                                          final PackageId parentId,
                                          final EmbeddedPackageInstallable slingInstallable)
focal_class.return: void
focal_class.signature: void identifyEmbeddedPackage(final PackageId packageId,
                                          final PackageId parentId,
                                          final EmbeddedPackageInstallable slingInstallable)
focal_class.class_method_signature: SilencingCheckFacade.appliedRepoInitScripts(final PackageId scanPackageId,
                                         final List<String> scripts,
                                         final SlingInstallable slingInstallable,
                                         final Session inspectSession)
focal_class.full_signature: @Override public void appliedRepoInitScripts(final PackageId scanPackageId,
                                         final List<String> scripts,
                                         final SlingInstallable slingInstallable,
                                         final Session inspectSession)
focal_class.identifier: appliedRepoInitScripts
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId scanPackageId,
                                         final List<String> scripts,
                                         final SlingInstallable slingInstallable,
                                         final Session inspectSession)
focal_class.return: void
focal_class.signature: void appliedRepoInitScripts(final PackageId scanPackageId,
                                         final List<String> scripts,
                                         final SlingInstallable slingInstallable,
                                         final Session inspectSession)
focal_class.class_method_signature: SilencingCheckFacade.afterScanPackage(final PackageId scanPackageId, final Session inspectSession)
focal_class.full_signature: @Override public void afterScanPackage(final PackageId scanPackageId, final Session inspectSession)
focal_class.identifier: afterScanPackage
focal_class.modifiers: @Override public
focal_class.parameters: (final PackageId scanPackageId, final Session inspectSession)
focal_class.return: void
focal_class.signature: void afterScanPackage(final PackageId scanPackageId, final Session inspectSession)
focal_method.body: @Override
      public void importedPath(final PackageId packageId, final String path, final Node node,
                               final PathAction action) throws RepositoryException {
          if (!silenced) {
              wrapped.importedPath(packageId, path, node, action);
          }
      }
focal_method.class_method_signature: SilencingCheckFacade.importedPath(final PackageId packageId, final String path, final Node node,
                               final PathAction action)
focal_method.full_signature: @Override public void importedPath(final PackageId packageId, final String path, final Node node,
                               final PathAction action)
focal_method.identifier: importedPath
focal_method.invocations: importedPath
focal_method.modifiers: @Override public
focal_method.parameters: (final PackageId packageId, final String path, final Node node,
                               final PathAction action)
focal_method.return: void
focal_method.signature: void importedPath(final PackageId packageId, final String path, final Node node,
                               final PathAction action)