From c667aba48871ac0cad1b71315c8a93ec0dc5d9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Tue, 14 Feb 2017 23:59:33 +0100 Subject: [PATCH] Update ITs to latest Pebble --- .../src/test/java/org/shredzone/acme4j/it/SessionIT.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/acme4j-client/src/test/java/org/shredzone/acme4j/it/SessionIT.java b/acme4j-client/src/test/java/org/shredzone/acme4j/it/SessionIT.java index 9bd3e8af..34732e12 100644 --- a/acme4j-client/src/test/java/org/shredzone/acme4j/it/SessionIT.java +++ b/acme4j-client/src/test/java/org/shredzone/acme4j/it/SessionIT.java @@ -17,6 +17,7 @@ import static org.hamcrest.Matchers.*; import static org.junit.Assert.assertThat; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; +import java.net.URI; import java.security.KeyPair; import org.junit.Test; @@ -66,10 +67,12 @@ public class SessionIT extends AbstractPebbleIT { assertThat(meta, not(nullValue())); // Pebble does not currently deliver any metadata - assertThat(meta.getTermsOfService(), is(nullValue())); + assertThat(meta.getTermsOfService(), is(URI.create("data:text/plain,Do%20what%20thou%20wilt"))); assertThat(meta.getWebsite(), is(nullValue())); assertThat(meta.getCaaIdentities(), is(empty())); - assertThat(meta.getJSON().toString(), sameJSONAs("{}")); + assertThat(meta.getJSON().toString(), sameJSONAs("{" + + "'terms-of-service': 'data:text/plain,Do%20what%20thou%20wilt'" + + "}")); } }