@Test public void testPackageIsRestored() throws IOException { restoreBlobStrategy.restore(properties, blob, TEST_BLOB_STORE_NAME, false); verify(p2RestoreFacet).assetExists(PACKAGE_PATH); verify(p2RestoreFacet).restore(any(AssetBlob.class), eq(PACKAGE_PATH)); verifyNoMoreInteractions(p2RestoreFacet); }
@Override protected boolean assetExists(@Nonnull final P2RestoreBlobData p2RestoreBlobData) throws IOException { P2RestoreFacet facet = getRestoreFacet(p2RestoreBlobData); return facet.assetExists(getAssetPath(p2RestoreBlobData)); }
P2RestoreBlobStrategy extends BaseRestoreBlobStrategy<P2RestoreBlobData> { @Override protected boolean assetExists(@Nonnull final P2RestoreBlobData p2RestoreBlobData) throws IOException { P2RestoreFacet facet = getRestoreFacet(p2RestoreBlobData); return facet.assetExists(getAssetPath(p2RestoreBlobData)); } }
P2RestoreBlobStrategy extends BaseRestoreBlobStrategy<P2RestoreBlobData> { @Override protected boolean assetExists(@Nonnull final P2RestoreBlobData p2RestoreBlobData) throws IOException { P2RestoreFacet facet = getRestoreFacet(p2RestoreBlobData); return facet.assetExists(getAssetPath(p2RestoreBlobData)); } @Inject  P2RestoreBlobStrategy(final NodeAccess nodeAccess,
                               final RepositoryManager repositoryManager,
                               final BlobStoreManager blobStoreManager,
                               final DryRunPrefix dryRunPrefix); }
P2RestoreBlobStrategy extends BaseRestoreBlobStrategy<P2RestoreBlobData> { @Override protected boolean assetExists(@Nonnull final P2RestoreBlobData p2RestoreBlobData) throws IOException { P2RestoreFacet facet = getRestoreFacet(p2RestoreBlobData); return facet.assetExists(getAssetPath(p2RestoreBlobData)); } @Inject  P2RestoreBlobStrategy(final NodeAccess nodeAccess,
                               final RepositoryManager repositoryManager,
                               final BlobStoreManager blobStoreManager,
                               final DryRunPrefix dryRunPrefix);  }
P2RestoreBlobStrategy extends BaseRestoreBlobStrategy<P2RestoreBlobData> { @Override protected boolean assetExists(@Nonnull final P2RestoreBlobData p2RestoreBlobData) throws IOException { P2RestoreFacet facet = getRestoreFacet(p2RestoreBlobData); return facet.assetExists(getAssetPath(p2RestoreBlobData)); } @Inject  P2RestoreBlobStrategy(final NodeAccess nodeAccess,
                               final RepositoryManager repositoryManager,
                               final BlobStoreManager blobStoreManager,
                               final DryRunPrefix dryRunPrefix);   }