Skip to content

Commit 47c3930

Browse files
committed
Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
1 parent c79fdfb commit 47c3930

File tree

59 files changed

+65
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+65
-20
lines changed

spring-expression/src/test/java/org/springframework/expression/spel/EvaluationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import org.springframework.expression.spel.support.StandardTypeLocator;
4343
import org.springframework.expression.spel.testresources.TestPerson;
4444

45+
import static org.hamcrest.MatcherAssert.assertThat;
4546
import static org.hamcrest.Matchers.*;
4647
import static org.junit.Assert.*;
4748

spring-expression/src/test/java/org/springframework/expression/spel/MapAccessTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.springframework.tests.TestGroup;
3434
import org.springframework.util.StopWatch;
3535

36+
import static org.hamcrest.MatcherAssert.assertThat;
3637
import static org.hamcrest.Matchers.*;
3738
import static org.junit.Assert.*;
3839

spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
import org.springframework.expression.spel.testresources.le.div.mod.reserved.Reserver;
6363
import org.springframework.util.ObjectUtils;
6464

65+
import static org.hamcrest.MatcherAssert.assertThat;
6566
import static org.hamcrest.Matchers.*;
6667
import static org.junit.Assert.*;
6768

spring-jdbc/src/test/java/org/springframework/jdbc/config/JdbcNamespaceIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.springframework.tests.TestGroup;
4141

4242
import static org.hamcrest.CoreMatchers.*;
43+
import static org.hamcrest.MatcherAssert.assertThat;
4344
import static org.junit.Assert.*;
4445
import static org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.*;
4546

spring-jdbc/src/test/java/org/springframework/jdbc/core/JdbcTemplateTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
import org.springframework.util.LinkedCaseInsensitiveMap;
5555
import org.springframework.util.StringUtils;
5656

57+
import static org.hamcrest.MatcherAssert.assertThat;
5758
import static org.hamcrest.Matchers.*;
5859
import static org.junit.Assert.*;
5960
import static org.mockito.BDDMockito.*;

spring-jdbc/src/test/java/org/springframework/jdbc/core/namedparam/BeanPropertySqlParameterSourceTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
import org.springframework.tests.sample.beans.TestBean;
2626

27+
import static org.hamcrest.MatcherAssert.assertThat;
2728
import static org.junit.Assert.*;
2829

2930
/**

spring-jdbc/src/test/java/org/springframework/jdbc/core/support/SqlLobValueTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package org.springframework.jdbc.core.support;
1718

1819
import java.io.ByteArrayInputStream;
@@ -33,6 +34,7 @@
3334
import org.springframework.jdbc.support.lob.LobCreator;
3435
import org.springframework.jdbc.support.lob.LobHandler;
3536

37+
import static org.hamcrest.MatcherAssert.assertThat;
3638
import static org.hamcrest.Matchers.*;
3739
import static org.junit.Assert.*;
3840
import static org.mockito.BDDMockito.*;

spring-jdbc/src/test/java/org/springframework/jdbc/datasource/DelegatingDataSourceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
import org.junit.Test;
2525

26+
import static org.hamcrest.MatcherAssert.assertThat;
2627
import static org.hamcrest.Matchers.*;
27-
import static org.junit.Assert.*;
2828
import static org.mockito.BDDMockito.*;
2929

3030
/**

spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/AbstractDatabaseInitializationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
2828
import org.springframework.transaction.support.TransactionSynchronizationManager;
2929

30+
import static org.hamcrest.MatcherAssert.assertThat;
3031
import static org.hamcrest.Matchers.*;
31-
import static org.junit.Assert.*;
3232

3333
/**
3434
* Abstract base class for integration tests involving database initialization.

spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/AbstractDatabasePopulatorTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.springframework.transaction.support.TransactionSynchronizationManager;
2626

2727
import static org.hamcrest.Matchers.*;
28+
import static org.hamcrest.MatcherAssert.assertThat;
2829
import static org.junit.Assert.*;
2930
import static org.mockito.Mockito.*;
3031

spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/H2DatabasePopulatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
import org.junit.Test;
2020
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
2121

22+
import static org.hamcrest.MatcherAssert.assertThat;
2223
import static org.hamcrest.Matchers.*;
23-
import static org.junit.Assert.*;
2424

2525
/**
2626
* @author Sam Brannen

spring-jdbc/src/test/java/org/springframework/jdbc/object/SqlQueryTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import org.springframework.lang.Nullable;
4242
import org.springframework.util.StringUtils;
4343

44+
import static org.hamcrest.MatcherAssert.assertThat;
4445
import static org.hamcrest.Matchers.*;
4546
import static org.junit.Assert.*;
4647
import static org.mockito.BDDMockito.*;

spring-jdbc/src/test/java/org/springframework/jdbc/support/SQLErrorCodesFactoryTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.springframework.core.io.Resource;
2929

3030
import static org.hamcrest.CoreMatchers.*;
31+
import static org.hamcrest.MatcherAssert.assertThat;
3132
import static org.junit.Assert.*;
3233
import static org.mockito.BDDMockito.*;
3334

spring-jdbc/src/test/java/org/springframework/jdbc/support/SQLExceptionCustomTranslatorTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.springframework.jdbc.BadSqlGrammarException;
2626

2727
import static org.hamcrest.CoreMatchers.*;
28+
import static org.hamcrest.MatcherAssert.assertThat;
2829
import static org.junit.Assert.*;
2930

3031
/**

spring-messaging/src/test/java/org/springframework/messaging/converter/MappingJackson2MessageConverterTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.springframework.messaging.support.MessageBuilder;
3434
import org.springframework.util.MimeType;
3535

36+
import static org.hamcrest.MatcherAssert.assertThat;
3637
import static org.hamcrest.Matchers.*;
3738
import static org.junit.Assert.*;
3839

spring-messaging/src/test/java/org/springframework/messaging/converter/MarshallingMessageConverterTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.messaging.converter;
1818

19+
import static org.hamcrest.MatcherAssert.assertThat;
1920
import static org.junit.Assert.*;
2021
import static org.xmlunit.diff.ComparisonType.*;
2122
import static org.xmlunit.diff.DifferenceEvaluators.*;

spring-messaging/src/test/java/org/springframework/messaging/handler/invocation/InvocableHandlerMethodTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.springframework.lang.Nullable;
2525
import org.springframework.messaging.Message;
2626

27+
import static org.hamcrest.MatcherAssert.assertThat;
2728
import static org.hamcrest.Matchers.*;
2829
import static org.junit.Assert.*;
2930
import static org.mockito.Mockito.*;

spring-messaging/src/test/java/org/springframework/messaging/handler/invocation/MethodMessageHandlerTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import org.springframework.util.Assert;
4242
import org.springframework.util.PathMatcher;
4343

44+
import static org.hamcrest.MatcherAssert.assertThat;
4445
import static org.junit.Assert.*;
4546

4647
/**

spring-messaging/src/test/java/org/springframework/messaging/handler/invocation/reactive/MethodMessageHandlerTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.springframework.util.ClassUtils;
4646
import org.springframework.util.PathMatcher;
4747

48+
import static org.hamcrest.MatcherAssert.assertThat;
4849
import static org.junit.Assert.*;
4950

5051
/**

spring-messaging/src/test/java/org/springframework/messaging/simp/SimpAttributesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
import org.junit.rules.ExpectedException;
2626
import org.mockito.Mockito;
2727

28+
import static org.hamcrest.MatcherAssert.assertThat;
2829
import static org.hamcrest.Matchers.*;
29-
import static org.junit.Assert.*;
3030
import static org.mockito.Mockito.*;
3131

3232
/**

spring-messaging/src/test/java/org/springframework/messaging/simp/SimpSessionScopeTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
import org.springframework.beans.factory.ObjectFactory;
2727

28+
import static org.hamcrest.MatcherAssert.assertThat;
2829
import static org.hamcrest.Matchers.*;
29-
import static org.junit.Assert.*;
3030
import static org.mockito.BDDMockito.*;
3131

3232
/**

spring-messaging/src/test/java/org/springframework/messaging/simp/annotation/support/SimpAnnotationMethodMessageHandlerTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
import org.springframework.validation.Validator;
6868
import org.springframework.validation.annotation.Validated;
6969

70+
import static org.hamcrest.MatcherAssert.assertThat;
7071
import static org.hamcrest.Matchers.*;
7172
import static org.junit.Assert.*;
7273
import static org.mockito.BDDMockito.any;

spring-messaging/src/test/java/org/springframework/messaging/simp/config/MessageBrokerConfigurationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
import org.springframework.validation.Validator;
7878
import org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean;
7979

80+
import static org.hamcrest.MatcherAssert.assertThat;
8081
import static org.junit.Assert.*;
8182
import static org.mockito.Mockito.*;
8283

spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/DefaultStompSessionTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
import org.springframework.util.MimeTypeUtils;
4747
import org.springframework.util.concurrent.SettableListenableFuture;
4848

49+
import static org.hamcrest.MatcherAssert.assertThat;
4950
import static org.hamcrest.Matchers.*;
5051
import static org.junit.Assert.*;
5152
import static org.mockito.Mockito.any;

spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/ReactorNettyTcpStompClientTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.springframework.util.SocketUtils;
4141
import org.springframework.util.concurrent.ListenableFuture;
4242

43+
import static org.hamcrest.MatcherAssert.assertThat;
4344
import static org.hamcrest.Matchers.*;
4445
import static org.junit.Assert.*;
4546

spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompHeaderAccessorTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import org.springframework.util.MimeTypeUtils;
3838
import org.springframework.util.MultiValueMap;
3939

40+
import static org.hamcrest.MatcherAssert.assertThat;
4041
import static org.junit.Assert.*;
4142

4243
/**

spring-messaging/src/test/java/org/springframework/messaging/simp/user/MultiServerUserRegistryTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.messaging.simp.user;
1818

19+
import static org.hamcrest.MatcherAssert.assertThat;
1920
import static org.hamcrest.Matchers.containsInAnyOrder;
2021
import static org.junit.Assert.*;
2122
import static org.mockito.Mockito.*;

spring-messaging/src/test/java/org/springframework/messaging/support/ErrorMessageTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.junit.Test;
2020

2121
import static org.hamcrest.CoreMatchers.*;
22-
import static org.junit.Assert.*;
22+
import static org.hamcrest.MatcherAssert.assertThat;
2323

2424
/**
2525
* @author Gary Russell

spring-messaging/src/test/java/org/springframework/messaging/support/ExecutorSubscribableChannelTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.springframework.messaging.MessageDeliveryException;
3434
import org.springframework.messaging.MessageHandler;
3535

36+
import static org.hamcrest.MatcherAssert.assertThat;
3637
import static org.hamcrest.Matchers.*;
3738
import static org.junit.Assert.*;
3839
import static org.mockito.BDDMockito.*;

spring-messaging/src/test/java/org/springframework/messaging/support/MessageHeaderAccessorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
import org.springframework.util.SerializationTestUtils;
3333

3434
import static org.hamcrest.CoreMatchers.startsWith;
35+
import static org.hamcrest.MatcherAssert.assertThat;
3536
import static org.junit.Assert.assertEquals;
3637
import static org.junit.Assert.assertFalse;
3738
import static org.junit.Assert.assertNotEquals;
3839
import static org.junit.Assert.assertNotNull;
3940
import static org.junit.Assert.assertNull;
4041
import static org.junit.Assert.assertSame;
41-
import static org.junit.Assert.assertThat;
4242
import static org.junit.Assert.assertTrue;
4343

4444
/**

spring-orm/src/test/java/org/springframework/orm/jpa/SharedEntityManagerCreatorTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.mockito.junit.MockitoJUnitRunner;
2929

3030
import static org.hamcrest.CoreMatchers.*;
31+
import static org.hamcrest.MatcherAssert.assertThat;
3132
import static org.junit.Assert.*;
3233
import static org.mockito.BDDMockito.*;
3334
import static org.mockito.BDDMockito.verifyNoMoreInteractions;

spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/DefaultPersistenceUnitManagerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
import org.springframework.core.io.DefaultResourceLoader;
2424
import org.springframework.orm.jpa.domain.Person;
2525

26+
import static org.hamcrest.MatcherAssert.assertThat;
2627
import static org.hamcrest.Matchers.*;
27-
import static org.junit.Assert.*;
2828

2929
/**
3030
* Tests for {@link DefaultPersistenceUnitManager}.

spring-oxm/src/test/java/org/springframework/oxm/AbstractMarshallerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import java.io.ByteArrayOutputStream;
3838
import java.io.StringWriter;
3939

40-
import static org.junit.Assert.assertThat;
40+
import static org.hamcrest.MatcherAssert.assertThat;
4141
import static org.junit.Assert.assertTrue;
4242

4343
/**

spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
import java.lang.reflect.Type;
5555
import java.util.Collections;
5656

57+
import static org.hamcrest.MatcherAssert.assertThat;
5758
import static org.junit.Assert.assertEquals;
5859
import static org.junit.Assert.assertFalse;
59-
import static org.junit.Assert.assertThat;
6060
import static org.junit.Assert.assertTrue;
6161
import static org.junit.Assert.fail;
6262
import static org.mockito.BDDMockito.eq;

spring-oxm/src/test/java/org/springframework/oxm/xstream/XStreamMarshallerTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858

5959
import org.springframework.util.xml.StaxUtils;
6060

61+
import static org.hamcrest.MatcherAssert.assertThat;
6162
import static org.junit.Assert.*;
6263
import static org.mockito.BDDMockito.*;
6364
import static org.xmlunit.matchers.CompareMatcher.*;

spring-webflux/src/test/java/org/springframework/web/reactive/DispatcherHandlerErrorTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252

5353
import static org.hamcrest.CoreMatchers.instanceOf;
5454
import static org.hamcrest.CoreMatchers.startsWith;
55+
import static org.hamcrest.MatcherAssert.assertThat;
5556
import static org.hamcrest.Matchers.is;
5657
import static org.junit.Assert.*;
5758
import static org.springframework.http.MediaType.*;

spring-webflux/src/test/java/org/springframework/web/reactive/config/ResourceHandlerRegistryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
import org.springframework.web.reactive.resource.VersionResourceResolver;
5050
import org.springframework.web.reactive.resource.WebJarsResourceResolver;
5151

52+
import static org.hamcrest.MatcherAssert.assertThat;
5253
import static org.junit.Assert.assertEquals;
5354
import static org.junit.Assert.assertFalse;
5455
import static org.junit.Assert.assertNull;
55-
import static org.junit.Assert.assertThat;
5656
import static org.junit.Assert.assertTrue;
5757

5858
/**

spring-webflux/src/test/java/org/springframework/web/reactive/function/BodyInsertersTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
import org.springframework.util.MultiValueMap;
6969

7070
import static java.nio.charset.StandardCharsets.*;
71+
import static org.hamcrest.MatcherAssert.assertThat;
7172
import static org.hamcrest.Matchers.*;
7273
import static org.junit.Assert.*;
7374
import static org.springframework.http.codec.json.Jackson2CodecSupport.*;

spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
5757
import org.springframework.http.codec.Pojo;
5858

59+
import static org.hamcrest.MatcherAssert.assertThat;
5960
import static org.junit.Assert.*;
6061

6162
/**

spring-webflux/src/test/java/org/springframework/web/reactive/resource/AppCacheManifestTransformerTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.springframework.mock.web.test.server.MockServerWebExchange;
3030
import org.springframework.util.FileCopyUtils;
3131

32+
import static org.hamcrest.MatcherAssert.assertThat;
3233
import static org.hamcrest.Matchers.*;
3334
import static org.junit.Assert.*;
3435
import static org.springframework.mock.http.server.reactive.test.MockServerHttpRequest.*;

spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceUrlProviderTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import org.springframework.web.reactive.handler.SimpleUrlHandlerMapping;
4040
import org.springframework.web.util.pattern.PathPattern;
4141

42+
import static org.hamcrest.MatcherAssert.assertThat;
4243
import static org.junit.Assert.*;
4344
import static org.springframework.mock.http.server.reactive.test.MockServerHttpRequest.*;
4445

spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceWebHandlerTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
import org.springframework.web.server.ResponseStatusException;
5656
import org.springframework.web.server.ServerWebExchange;
5757

58+
import static org.hamcrest.MatcherAssert.assertThat;
5859
import static org.hamcrest.Matchers.*;
5960
import static org.junit.Assert.*;
6061
import static org.mockito.ArgumentMatchers.any;

spring-webflux/src/test/java/org/springframework/web/reactive/resource/VersionResourceResolverTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package org.springframework.web.reactive.resource;
1718

1819
import java.time.Duration;
@@ -33,6 +34,7 @@
3334
import org.springframework.mock.web.test.server.MockServerWebExchange;
3435
import org.springframework.web.server.ServerWebExchange;
3536

37+
import static org.hamcrest.MatcherAssert.assertThat;
3638
import static org.hamcrest.Matchers.*;
3739
import static org.junit.Assert.*;
3840
import static org.mockito.BDDMockito.*;

spring-webflux/src/test/java/org/springframework/web/reactive/result/method/HandlerMethodMappingTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.springframework.web.util.pattern.PathPattern;
3636
import org.springframework.web.util.pattern.PathPatternParser;
3737

38+
import static org.hamcrest.MatcherAssert.assertThat;
3839
import static org.junit.Assert.*;
3940

4041
/**

0 commit comments

Comments
 (0)