Use the java.net.http client

With this patch, the old HttpURLConnection client is replaced with
the new java.net.http client that was introduced in Java 11.
This commit is contained in:
Richard Körber
2023-04-24 21:16:07 +02:00
parent d6296111f7
commit 783fdde013
22 changed files with 458 additions and 418 deletions

View File

@@ -220,7 +220,7 @@ public class OrderIT extends PebbleITBase {
Certificate cert2 = login2.bindCertificate(certificate.getLocation());
cert2.download();
}, "Could download revoked cert");
assertThat(ex.getMessage()).isEqualTo("HTTP 404: Not Found");
assertThat(ex.getMessage()).isEqualTo("HTTP 404");
// Try to revoke again
var ex2 = assertThrows(AcmeServerException.class,