Fixes a test tagged as "external" that

fails during local builds with Java 17+.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2022-10-03 17:45:23 +02:00
parent 94f43548a0
commit 8e63e872f7
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.containsStringIgnoringCase;
import static org.hamcrest.Matchers.is;
/**
@ -86,6 +86,6 @@ public class ProxyWebAppTest
// this proxy configuration, not redirected to the actual website.
assertThat("response status", response.getStatus(), is(HttpStatus.OK_200));
// Expecting a Javadoc / APIDoc response - look for something unique for APIdoc.
assertThat("response", response.getContentAsString(), containsString("All&nbsp;Classes"));
assertThat("response", response.getContentAsString(), containsStringIgnoringCase("javadoc"));
}
}