Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesagnew committed Oct 30, 2023
1 parent 4c32f3e commit 2a2c295
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void testWrite400BadRequest() throws IOException {
String actual = outputStream.toString();
String expected = "HTTP/1.1 400 Bad Request\r\nContent-Type: text/html; charset=ISO-8859-1\r\n\r\n<html><head><title>400 - Bad Request</title></head><body><img src=\"data:image/png;base64," +
Base64.encodeBase64String(IOUtils.readClasspathIntoByteArray("/ca/uhn/hl7v2/hoh/hapi_hoh_banner.png")) +
"\"/><h1>HTTP 400 - Bad Request</h1><p>Invalid Content-Type: text/plain</p><p style=\"font-size: 0.7em; color: #606060;\">HAPI (HL7 over HTTP) version 2.4-SNAPSHOT</p></body></html>";
"\"/><h1>HTTP 400 - Bad Request</h1><p>Invalid Content-Type: text/plain</p><p style=\"font-size: 0.7em; color: #606060;\">HAPI (HL7 over HTTP) version " + VersionLogger.getVersion() + "</p></body></html>";
assertEquals(expected, actual);
}

Expand All @@ -34,7 +34,7 @@ public void testWrite400SignatureVerificationFailed() throws IOException {
String actual = outputStream.toString();
String expected = "HTTP/1.1 400 Bad Request\r\nContent-Type: text/html; charset=ISO-8859-1\r\n\r\n<html><head><title>400 - Bad Request</title></head><body><img src=\"data:image/png;base64," +
Base64.encodeBase64String(IOUtils.readClasspathIntoByteArray("/ca/uhn/hl7v2/hoh/hapi_hoh_banner.png")) +
"\"/><h1>HTTP 400 - Bad Request</h1><p>Failed to verify message signature</p><p style=\"font-size: 0.7em; color: #606060;\">HAPI (HL7 over HTTP) version 2.4-SNAPSHOT</p></body></html>";
"\"/><h1>HTTP 400 - Bad Request</h1><p>Failed to verify message signature</p><p style=\"font-size: 0.7em; color: #606060;\">HAPI (HL7 over HTTP) version " + VersionLogger.getVersion() + "</p></body></html>";
assertEquals(expected, actual);
}
}
8 changes: 8 additions & 0 deletions hapi-testpanel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven.deploy.plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
Expand Down

0 comments on commit 2a2c295

Please sign in to comment.