Skip to content

Instantly share code, notes, and snippets.

@itsgokhanyilmaz
Last active August 31, 2020 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsgokhanyilmaz/6bb4c1789717a9c1cb000d485ff5b357 to your computer and use it in GitHub Desktop.
Save itsgokhanyilmaz/6bb4c1789717a9c1cb000d485ff5b357 to your computer and use it in GitHub Desktop.
MockBlobStorageService
@Service
@ConditionalOnProperty(value = "mock.azure.blobstorage.service.enabled", havingValue = "true")
public class MockBlobStorageService implements BlobStorageService{
@Override
public URI uploadPicture(MultipartFile multipartFile) {
return URI.create("https://mahallemstorage.blob.core.windows.net/testmahallem/mordor_ale.png");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment