Provide JUnit5 "replacement" for AbstractMagnoliaHtmlUnitTest (MGNLTEST-454)

[MGNLTEST-467] Make MagnoliaHttpClient more convenient ... Created: 04/Dec/23  Updated: 13/Dec/23  Resolved: 13/Dec/23

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Sub-task Priority: Neutral
Reporter: Christoph Meier Assignee: Christoph Meier
Resolution: Resolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 3h
Original Estimate: Not Specified

Template:
Team: Foundation

 Description   

Additional methods:

MagnoliaHttpClient requestUrl(String requestUrl
To set the requestUrl - bypassing instance and path this way.

 

public String sendRequestAndGetResponseUrl()
To get the location of the response - e.g. to figure out whether a relocation happened.

Note that okhttp3.Response.isRedirect() is not really working as expected.

 

Those methods should help to replace some of the "deprecated" tests using com.gargoylesoftware.htmlunit.


Generated at Mon Feb 12 07:49:14 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.