@Test public void testPackageIsRestored() throws Exception { underTest.restore(properties, blob, TEST_BLOB_STORE_NAME, false); verify(aptRestoreFacet).assetExists(PACKAGE_PATH); verify(aptRestoreFacet).restore(any(AssetBlob.class), eq(PACKAGE_PATH)); verifyNoMoreInteractions(aptRestoreFacet); }
@Override protected boolean assetExists(@Nonnull final AptRestoreBlobData data) { AptRestoreFacet facet = data.getBlobData().getRepository().facet(AptRestoreFacet.class); return facet.assetExists(data.getBlobData().getBlobName()); }
AptRestoreBlobStrategy extends BaseRestoreBlobStrategy<AptRestoreBlobData> { @Override protected boolean assetExists(@Nonnull final AptRestoreBlobData data) { AptRestoreFacet facet = data.getBlobData().getRepository().facet(AptRestoreFacet.class); return facet.assetExists(data.getBlobData().getBlobName()); } }
AptRestoreBlobStrategy extends BaseRestoreBlobStrategy<AptRestoreBlobData> { @Override protected boolean assetExists(@Nonnull final AptRestoreBlobData data) { AptRestoreFacet facet = data.getBlobData().getRepository().facet(AptRestoreFacet.class); return facet.assetExists(data.getBlobData().getBlobName()); } @Inject  AptRestoreBlobStrategy(final NodeAccess nodeAccess,
                                final RepositoryManager repositoryManager,
                                final BlobStoreManager blobStoreManager,
                                final DryRunPrefix dryRunPrefix); }
AptRestoreBlobStrategy extends BaseRestoreBlobStrategy<AptRestoreBlobData> { @Override protected boolean assetExists(@Nonnull final AptRestoreBlobData data) { AptRestoreFacet facet = data.getBlobData().getRepository().facet(AptRestoreFacet.class); return facet.assetExists(data.getBlobData().getBlobName()); } @Inject  AptRestoreBlobStrategy(final NodeAccess nodeAccess,
                                final RepositoryManager repositoryManager,
                                final BlobStoreManager blobStoreManager,
                                final DryRunPrefix dryRunPrefix);  }
AptRestoreBlobStrategy extends BaseRestoreBlobStrategy<AptRestoreBlobData> { @Override protected boolean assetExists(@Nonnull final AptRestoreBlobData data) { AptRestoreFacet facet = data.getBlobData().getRepository().facet(AptRestoreFacet.class); return facet.assetExists(data.getBlobData().getBlobName()); } @Inject  AptRestoreBlobStrategy(final NodeAccess nodeAccess,
                                final RepositoryManager repositoryManager,
                                final BlobStoreManager blobStoreManager,
                                final DryRunPrefix dryRunPrefix);   }