mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Enforce use of AssertJ assumptions via Checkstyle
Closes gh-36582
(cherry picked from commit b6fc3a1b6f)
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user