@Test(expected = IllegalStateException.class) public void testIfBlobDataNameIsEmptyExceptionIsThrown() { when(helmRestoreBlobData.getBlobData().getBlobName()).thenReturn(""); restoreBlobStrategy.createRestoreData(restoreBlobData); }
@Override protected HelmRestoreBlobData createRestoreData(final RestoreBlobData restoreBlobData) { checkState(!isEmpty(restoreBlobData.getBlobName()), "Blob name cannot be empty"); return new HelmRestoreBlobData(restoreBlobData); }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected HelmRestoreBlobData createRestoreData(final RestoreBlobData restoreBlobData) { checkState(!isEmpty(restoreBlobData.getBlobName()), "Blob name cannot be empty"); return new HelmRestoreBlobData(restoreBlobData); } }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected HelmRestoreBlobData createRestoreData(final RestoreBlobData restoreBlobData) { checkState(!isEmpty(restoreBlobData.getBlobName()), "Blob name cannot be empty"); return new HelmRestoreBlobData(restoreBlobData); } @Inject  HelmRestoreBlobStrategy(final NodeAccess nodeAccess,
                                 final RepositoryManager repositoryManager,
                                 final BlobStoreManager blobStoreManager,
                                 final DryRunPrefix dryRunPrefix); }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected HelmRestoreBlobData createRestoreData(final RestoreBlobData restoreBlobData) { checkState(!isEmpty(restoreBlobData.getBlobName()), "Blob name cannot be empty"); return new HelmRestoreBlobData(restoreBlobData); } @Inject  HelmRestoreBlobStrategy(final NodeAccess nodeAccess,
                                 final RepositoryManager repositoryManager,
                                 final BlobStoreManager blobStoreManager,
                                 final DryRunPrefix dryRunPrefix);  }
HelmRestoreBlobStrategy extends BaseRestoreBlobStrategy<HelmRestoreBlobData> { @Override protected HelmRestoreBlobData createRestoreData(final RestoreBlobData restoreBlobData) { checkState(!isEmpty(restoreBlobData.getBlobName()), "Blob name cannot be empty"); return new HelmRestoreBlobData(restoreBlobData); } @Inject  HelmRestoreBlobStrategy(final NodeAccess nodeAccess,
                                 final RepositoryManager repositoryManager,
                                 final BlobStoreManager blobStoreManager,
                                 final DryRunPrefix dryRunPrefix);   }