Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
1.1.0
Description
When using the Magnolia "builder" methods to set a path and an instance but keeping the user null, then public Request build() throws a Nullpointer.
Example to reproduce
@Test
void serveResourceFromClasspath(MagnoliaHttpClient client) throws Exception {
String resourcePath = "/.resources/test/classpath-test-resource.html";
client.path(resourcePath).instance(DIRECT_AUTHOR);
Request request = client.build();
//Response response = client.get(request);
// ... more stuff here
}
Expected: Request is build and can be used to get the response.
Actual behaviour: client.build() throws a NullPointer.
Unfortunately the recently released test-fwk 1.1.0 contains this bug.
Checklists
Acceptance criteria
Attachments
Issue Links
- mentioned in
-
Page Loading...