From a8df8f7764554d9e730e8dc8ab434c5906a149d3 Mon Sep 17 00:00:00 2001 From: jsha Date: Wed, 4 Dec 2024 16:09:22 -0800 Subject: [PATCH] Use the non-spy reference when comparing expectedUrl --- .../backblaze/b2/client/B2StorageClientWebifierImplTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/com/backblaze/b2/client/B2StorageClientWebifierImplTest.java b/core/src/test/java/com/backblaze/b2/client/B2StorageClientWebifierImplTest.java index 452b90e91..6610bc4a6 100644 --- a/core/src/test/java/com/backblaze/b2/client/B2StorageClientWebifierImplTest.java +++ b/core/src/test/java/com/backblaze/b2/client/B2StorageClientWebifierImplTest.java @@ -1204,7 +1204,7 @@ public void testDownloadById() throws B2Exception { " X-Bz-Test-Mode: force_cap_exceeded\n" ); - assertEquals(expectedUrl, webifierSpy.getDownloadByIdUrl(ACCOUNT_AUTH, request)); + assertEquals(expectedUrl, webifier.getDownloadByIdUrl(ACCOUNT_AUTH, request)); checkRequestCategory(OTHER, w -> w.downloadById(ACCOUNT_AUTH, request, noopContentHandler)); } @@ -1318,7 +1318,7 @@ public void testDownloadByName() throws B2Exception { " User-Agent: SecretAgentMan/3.19.28\n" + " X-Bz-Test-Mode: force_cap_exceeded\n" ); - assertEquals(expectedUrl, webifierSpy.getDownloadByNameUrl(ACCOUNT_AUTH, request)); + assertEquals(expectedUrl, webifier.getDownloadByNameUrl(ACCOUNT_AUTH, request)); checkRequestCategory(OTHER, w -> w.downloadByName(ACCOUNT_AUTH, request, noopContentHandler)); }