@Test public void testPackageIsRestored() throws Exception { restoreBlobStrategy.restore(properties, blob, TEST_BLOB_STORE_NAME, false); verify(helmRestoreFacet).assetExists(ARCHIVE_PATH); verify(helmRestoreFacet).restore(any(AssetBlob.class), eq(ARCHIVE_PATH)); verifyNoMoreInteractions(helmRestoreFacet); }
@Override protected boolean assetExists(@Nonnull final HelmRestoreBlobData helmRestoreBlobData) { HelmRestoreFacet facet = getRestoreFacet(helmRestoreBlobData); return facet.assetExists(getAssetPath(helmRestoreBlobData)); }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected boolean assetExists(@Nonnull final HelmRestoreBlobData helmRestoreBlobData) { HelmRestoreFacet facet = getRestoreFacet(helmRestoreBlobData); return facet.assetExists(getAssetPath(helmRestoreBlobData)); } }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected boolean assetExists(@Nonnull final HelmRestoreBlobData helmRestoreBlobData) { HelmRestoreFacet facet = getRestoreFacet(helmRestoreBlobData); return facet.assetExists(getAssetPath(helmRestoreBlobData)); } @Inject  HelmRestoreBlobStrategy(final NodeAccess nodeAccess,
                                 final RepositoryManager repositoryManager,
                                 final BlobStoreManager blobStoreManager,
                                 final DryRunPrefix dryRunPrefix); }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected boolean assetExists(@Nonnull final HelmRestoreBlobData helmRestoreBlobData) { HelmRestoreFacet facet = getRestoreFacet(helmRestoreBlobData); return facet.assetExists(getAssetPath(helmRestoreBlobData)); } @Inject  HelmRestoreBlobStrategy(final NodeAccess nodeAccess,
                                 final RepositoryManager repositoryManager,
                                 final BlobStoreManager blobStoreManager,
                                 final DryRunPrefix dryRunPrefix);  }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected boolean assetExists(@Nonnull final HelmRestoreBlobData helmRestoreBlobData) { HelmRestoreFacet facet = getRestoreFacet(helmRestoreBlobData); return facet.assetExists(getAssetPath(helmRestoreBlobData)); } @Inject  HelmRestoreBlobStrategy(final NodeAccess nodeAccess,
                                 final RepositoryManager repositoryManager,
                                 final BlobStoreManager blobStoreManager,
                                 final DryRunPrefix dryRunPrefix);   }