This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/main by this push:
new 0d671bdd45 Attempt to fix
org.apache.cxf.systest.jaxrs.JAXRSMultipartTest.testAddBookMixedMultiValueMapParameter
test case on Windows
0d671bdd45 is described below
commit 0d671bdd4504777596089359a9709a5607e935f5
Author: Andriy Redko <[email protected]>
AuthorDate: Sun Jul 9 16:54:55 2023 -0400
Attempt to fix
org.apache.cxf.systest.jaxrs.JAXRSMultipartTest.testAddBookMixedMultiValueMapParameter
test case on Windows
---
.../test/java/org/apache/cxf/systest/jaxrs/JAXRSMultipartTest.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultipartTest.java
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultipartTest.java
index c92268c148..55939ff655 100644
---
a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultipartTest.java
+++
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultipartTest.java
@@ -1062,11 +1062,13 @@ public class JAXRSMultipartTest extends
AbstractBusClientServerTestBase {
try {
CloseableHttpResponse response = client.execute(post);
- assertEquals(status, response.getStatusLine().getStatusCode());
+ final String body = EntityUtils.toString(response.getEntity());
+ assertThat("Unexpected status code for response:" + response,
+ response.getStatusLine().getStatusCode(), equalTo(status));
if (status == 200) {
InputStream expected =
getClass().getResourceAsStream("resources/expected_add_book.txt");
assertEquals(stripXmlInstructionIfNeeded(getStringFromInputStream(expected)),
-
stripXmlInstructionIfNeeded(EntityUtils.toString(response.getEntity())));
+ stripXmlInstructionIfNeeded(body));
}
} finally {
// Release current connection to the connection pool once you are
done