mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 07:39:09 +00:00
Enforce use of AssertJ assumptions via Checkstyle
Closes gh-36582
This commit is contained in:
+1
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user