From 808f4ceeb06951fe38be6ebd879642120eecb927 Mon Sep 17 00:00:00 2001 From: Scott Wierschem Date: Thu, 16 Jan 2025 16:23:34 -0600 Subject: [PATCH] - r Replaced deprecated method calls --- .../src/test/java/com/spun/util/io/NetUtilsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/approvaltests-util-tests/src/test/java/com/spun/util/io/NetUtilsTest.java b/approvaltests-util-tests/src/test/java/com/spun/util/io/NetUtilsTest.java index 9c2e3cd9..6a5c7118 100644 --- a/approvaltests-util-tests/src/test/java/com/spun/util/io/NetUtilsTest.java +++ b/approvaltests-util-tests/src/test/java/com/spun/util/io/NetUtilsTest.java @@ -55,7 +55,7 @@ void testReadWebPageReturnsPageContent() { MockWebServer server = new MockWebServer(); server.enqueue(new MockResponse().setBody("hello, world!\nsecond line")); - String s = NetUtils.readWebpage(server.url("/").toString()); + String s = NetUtils.loadWebPage(server.url("/").toString()); Approvals.verify(s); } @Test @@ -73,7 +73,7 @@ void testReadWebPageWithoutQueryParams() throws InterruptedException { MockWebServer server = new MockWebServer(); server.enqueue(new MockResponse().setBody("hello, world!")); - NetUtils.readWebpage(server.url("/api").toString()); + NetUtils.loadWebPage(server.url("/api").toString()); RecordedRequest recordedRequest = server.takeRequest(); assertEquals("/api", recordedRequest.getPath()); }