@Test public void testComponentIsRequiredForGz() { boolean expected = true; when(helmRestoreFacet.componentRequired(ARCHIVE_PATH)).thenReturn(expected); assertThat(restoreBlobStrategy.componentRequired(helmRestoreBlobData), is(expected)); verify(helmRestoreFacet).componentRequired(ARCHIVE_PATH); verifyNoMoreInteractions(helmRestoreFacet); }
@Override protected boolean componentRequired(final HelmRestoreBlobData data) { HelmRestoreFacet facet = getRestoreFacet(data); final String path = data.getBlobData().getBlobName(); return facet.componentRequired(path); }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected boolean componentRequired(final HelmRestoreBlobData data) { HelmRestoreFacet facet = getRestoreFacet(data); final String path = data.getBlobData().getBlobName(); return facet.componentRequired(path); } }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected boolean componentRequired(final HelmRestoreBlobData data) { HelmRestoreFacet facet = getRestoreFacet(data); final String path = data.getBlobData().getBlobName(); return facet.componentRequired(path); } @Inject  HelmRestoreBlobStrategy(final NodeAccess nodeAccess,
                                 final RepositoryManager repositoryManager,
                                 final BlobStoreManager blobStoreManager,
                                 final DryRunPrefix dryRunPrefix); }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected boolean componentRequired(final HelmRestoreBlobData data) { HelmRestoreFacet facet = getRestoreFacet(data); final String path = data.getBlobData().getBlobName(); return facet.componentRequired(path); } @Inject  HelmRestoreBlobStrategy(final NodeAccess nodeAccess,
                                 final RepositoryManager repositoryManager,
                                 final BlobStoreManager blobStoreManager,
                                 final DryRunPrefix dryRunPrefix);  }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected boolean componentRequired(final HelmRestoreBlobData data) { HelmRestoreFacet facet = getRestoreFacet(data); final String path = data.getBlobData().getBlobName(); return facet.componentRequired(path); } @Inject  HelmRestoreBlobStrategy(final NodeAccess nodeAccess,
                                 final RepositoryManager repositoryManager,
                                 final BlobStoreManager blobStoreManager,
                                 final DryRunPrefix dryRunPrefix);   }