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