Enforce use of AssertJ assumptions via Checkstyle

Closes gh-36582
This commit is contained in:
Sam Brannen
2026-04-02 12:43:12 +02:00
parent d767806977
commit b6fc3a1b6f
11 changed files with 56 additions and 44 deletions
@@ -77,9 +77,8 @@ class DefaultResponseCreatorTests {
@ParameterizedTest(name = "setBodyFromStringWithCharset [{0}]")
@ValueSource(strings = {"Cp1047", "UTF-8", "UTF-16", "US-ASCII", "ISO-8859-1"})
void setBodyFromStringWithCharset(String charset) throws IOException {
assumeThat(Charset.isSupported(charset))
.overridingErrorMessage("charset %s is not supported by this JVM", charset)
.as("charset %s is not supported by this JVM", charset)
.isTrue();
Charset charsetObj = Charset.forName(charset);