Enforce use of AssertJ assumptions via Checkstyle

Closes gh-36582

(cherry picked from commit b6fc3a1b6f)
This commit is contained in:
Sam Brannen
2026-04-02 11:16:42 +02:00
parent 153e553675
commit 5873e40782
16 changed files with 91 additions and 71 deletions
@@ -34,7 +34,7 @@ import org.springframework.web.testfixture.servlet.MockServletContext;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.junit.jupiter.api.Assumptions.assumeTrue;
import static org.assertj.core.api.Assumptions.assumeThat;
/**
* @author Rod Johnson
@@ -124,7 +124,7 @@ class ResourceBundleViewResolverTests {
@Test
void sameBundleOnlyCachedOnce() throws Exception {
assumeTrue(rb.isCache());
assumeThat(rb.isCache()).isTrue();
View v1 = rb.resolveViewName("debugView", Locale.ENGLISH);
View v2 = rb.resolveViewName("debugView", Locale.UK);