Skip to content

Commit 9173db5

Browse files
fix: update URL retrieval in RemoteEntityFileStorageTest to handle RemoteStoredEntityFile
1 parent ed6ad51 commit 9173db5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/entity-files/sources/core/src/test/java/tools/dynamia/modules/entityfile/remote/RemoteEntityFileStorageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public void testUploadAndDownloadUrl_areConsistent() {
336336
storage.upload(ef, info);
337337

338338
StoredEntityFile stored = storage.download(ef);
339-
String url = stored.getUrl();
339+
String url = stored instanceof RemoteEntityFileStorage.RemoteStoredEntityFile r ? r.getRemoteUrl() : stored.getUrl();
340340

341341
// The URL returned by download() must point to the same resource that was uploaded
342342
assertNotNull(url);

0 commit comments

Comments
 (0)