Skip to content

Commit

Permalink
- r Replaced deprecated method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBob committed Jan 16, 2025
1 parent a3f9a28 commit 808f4ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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());
}
Expand Down

0 comments on commit 808f4ce

Please sign in to comment.