@Test public void componentHashsumShouldBeEmpty() throws Exception { Optional<String> componentHashsum = underTest.getComponentHashsumForProxyRepo(repository, context); assertThat(componentHashsum, is(empty())); }
protected Optional<String> getComponentHashsumForProxyRepo(final Repository repository, final Context context) throws TarballLoadingException { try { UnitOfWork.begin(repository.facet(StorageFacet.class).txSupplier()); return getComponentHashsum(repository, context); } catch (IOException e) { throw new TarballLoadingException(e.getMessage()); } finally { UnitOfWork.end(); } }
OrientNpmAuditTarballFacet extends NpmAuditTarballFacet { protected Optional<String> getComponentHashsumForProxyRepo(final Repository repository, final Context context) throws TarballLoadingException { try { UnitOfWork.begin(repository.facet(StorageFacet.class).txSupplier()); return getComponentHashsum(repository, context); } catch (IOException e) { throw new TarballLoadingException(e.getMessage()); } finally { UnitOfWork.end(); } } }
OrientNpmAuditTarballFacet extends NpmAuditTarballFacet { protected Optional<String> getComponentHashsumForProxyRepo(final Repository repository, final Context context) throws TarballLoadingException { try { UnitOfWork.begin(repository.facet(StorageFacet.class).txSupplier()); return getComponentHashsum(repository, context); } catch (IOException e) { throw new TarballLoadingException(e.getMessage()); } finally { UnitOfWork.end(); } } @Inject  OrientNpmAuditTarballFacet(
      @Named("${nexus.npm.audit.maxConcurrentRequests:-10}") final int maxConcurrentRequests); }
OrientNpmAuditTarballFacet extends NpmAuditTarballFacet { protected Optional<String> getComponentHashsumForProxyRepo(final Repository repository, final Context context) throws TarballLoadingException { try { UnitOfWork.begin(repository.facet(StorageFacet.class).txSupplier()); return getComponentHashsum(repository, context); } catch (IOException e) { throw new TarballLoadingException(e.getMessage()); } finally { UnitOfWork.end(); } } @Inject  OrientNpmAuditTarballFacet(
      @Named("${nexus.npm.audit.maxConcurrentRequests:-10}") final int maxConcurrentRequests);  }
OrientNpmAuditTarballFacet extends NpmAuditTarballFacet { protected Optional<String> getComponentHashsumForProxyRepo(final Repository repository, final Context context) throws TarballLoadingException { try { UnitOfWork.begin(repository.facet(StorageFacet.class).txSupplier()); return getComponentHashsum(repository, context); } catch (IOException e) { throw new TarballLoadingException(e.getMessage()); } finally { UnitOfWork.end(); } } @Inject  OrientNpmAuditTarballFacet(
      @Named("${nexus.npm.audit.maxConcurrentRequests:-10}") final int maxConcurrentRequests);   }