language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
d616e10dca686b12b4cc95ae103e6680bd4e4224.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webmvc/src/test/java/org/springframework/web/servlet/view/ResourceBundleViewResolverTests.java
@@ -34,7 +34,7 @@ import org.springframework.web.servlet.View; import static org.hamcrest.CoreMatchers.*; - +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.junit.Assume.*;
true
Other
spring-projects
spring-framework
d616e10dca686b12b4cc95ae103e6680bd4e4224.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webmvc/src/test/java/org/springframework/web/servlet/view/feed/AtomFeedViewTests.java
@@ -31,8 +31,8 @@ import java.util.List; import java.util.Map; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThat; /** * @author Arjen Poutsma
true
Other
spring-projects
spring-framework
d616e10dca686b12b4cc95ae103e6680bd4e4224.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webmvc/src/test/java/org/springframework/web/servlet/view/feed/RssFeedViewTests.java
@@ -32,8 +32,8 @@ import java.util.List; import java.util.Map; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThat; import static org.xmlunit.matchers.CompareMatcher.isSimilarTo; /**
true
Other
spring-projects
spring-framework
d616e10dca686b12b4cc95ae103e6680bd4e4224.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webmvc/src/test/java/org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurerTests.java
@@ -35,6 +35,7 @@ import org.springframework.ui.freemarker.FreeMarkerTemplateUtils; import org.springframework.ui.freemarker.SpringTemplateLoader; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
d616e10dca686b12b4cc95ae103e6680bd4e4224.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webmvc/src/test/java/org/springframework/web/servlet/view/groovy/GroovyMarkupConfigurerTests.java
@@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.web.servlet.view.groovy; import java.io.IOException; @@ -25,13 +26,13 @@ import groovy.text.markup.MarkupTemplateEngine; import groovy.text.markup.Templat...
true
Other
spring-projects
spring-framework
d616e10dca686b12b4cc95ae103e6680bd4e4224.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webmvc/src/test/java/org/springframework/web/servlet/view/groovy/GroovyMarkupViewTests.java
@@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.web.servlet.view.groovy; import java.io.Reader; @@ -40,6 +41,7 @@ import org.springframework.mock.web.test.MockServletContext; import org.springframework....
true
Other
spring-projects
spring-framework
d616e10dca686b12b4cc95ae103e6680bd4e4224.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webmvc/src/test/java/org/springframework/web/servlet/view/json/MappingJackson2JsonViewTests.java
@@ -55,6 +55,7 @@ import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.Mockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-expression/src/test/java/org/springframework/expression/spel/EvaluationTests.java
@@ -42,6 +42,7 @@ import org.springframework.expression.spel.support.StandardTypeLocator; import org.springframework.expression.spel.testresources.TestPerson; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-expression/src/test/java/org/springframework/expression/spel/MapAccessTests.java
@@ -33,6 +33,7 @@ import org.springframework.tests.TestGroup; import org.springframework.util.StopWatch; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java
@@ -62,6 +62,7 @@ import org.springframework.expression.spel.testresources.le.div.mod.reserved.Reserver; import org.springframework.util.ObjectUtils; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/config/JdbcNamespaceIntegrationTests.java
@@ -40,6 +40,7 @@ import org.springframework.tests.TestGroup; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/core/JdbcTemplateTests.java
@@ -54,6 +54,7 @@ import org.springframework.util.LinkedCaseInsensitiveMap; import org.springframework.util.StringUtils; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.mockito.BDDMockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/core/namedparam/BeanPropertySqlParameterSourceTests.java
@@ -24,6 +24,7 @@ import org.springframework.tests.sample.beans.TestBean; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/core/support/SqlLobValueTests.java
@@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.jdbc.core.support; import java.io.ByteArrayInputStream; @@ -33,6 +34,7 @@ import org.springframework.jdbc.support.lob.LobCreator; import org.springframewo...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/datasource/DelegatingDataSourceTests.java
@@ -23,8 +23,8 @@ import org.junit.Test; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; import static org.mockito.BDDMockito.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/AbstractDatabaseInitializationTests.java
@@ -27,8 +27,8 @@ import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType; import org.springframework.transaction.support.TransactionSynchronizationManager; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * Ab...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/AbstractDatabasePopulatorTests.java
@@ -25,6 +25,7 @@ import org.springframework.transaction.support.TransactionSynchronizationManager; import static org.hamcrest.Matchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.Mockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/H2DatabasePopulatorTests.java
@@ -19,8 +19,8 @@ import org.junit.Test; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * @author Sam Brannen
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/object/SqlQueryTests.java
@@ -41,6 +41,7 @@ import org.springframework.lang.Nullable; import org.springframework.util.StringUtils; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.mockito.BDDMockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/support/SQLErrorCodesFactoryTests.java
@@ -28,6 +28,7 @@ import org.springframework.core.io.Resource; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.BDDMockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-jdbc/src/test/java/org/springframework/jdbc/support/SQLExceptionCustomTranslatorTests.java
@@ -25,6 +25,7 @@ import org.springframework.jdbc.BadSqlGrammarException; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/converter/MappingJackson2MessageConverterTests.java
@@ -33,6 +33,7 @@ import org.springframework.messaging.support.MessageBuilder; import org.springframework.util.MimeType; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/converter/MarshallingMessageConverterTests.java
@@ -16,6 +16,7 @@ package org.springframework.messaging.converter; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.xmlunit.diff.ComparisonType.*; import static org.xmlunit.diff.DifferenceEvaluators.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/handler/invocation/InvocableHandlerMethodTests.java
@@ -24,6 +24,7 @@ import org.springframework.lang.Nullable; import org.springframework.messaging.Message; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.mockito.Mockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/handler/invocation/MethodMessageHandlerTests.java
@@ -41,6 +41,7 @@ import org.springframework.util.Assert; import org.springframework.util.PathMatcher; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/handler/invocation/reactive/MethodMessageHandlerTests.java
@@ -45,6 +45,7 @@ import org.springframework.util.ClassUtils; import org.springframework.util.PathMatcher; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/simp/SimpAttributesTests.java
@@ -25,8 +25,8 @@ import org.junit.rules.ExpectedException; import org.mockito.Mockito; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; import static org.mockito.Mockito.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/simp/SimpSessionScopeTests.java
@@ -25,8 +25,8 @@ import org.springframework.beans.factory.ObjectFactory; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; import static org.mockito.BDDMockito.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/simp/annotation/support/SimpAnnotationMethodMessageHandlerTests.java
@@ -67,6 +67,7 @@ import org.springframework.validation.Validator; import org.springframework.validation.annotation.Validated; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.mockito.BDDMockito.any;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/simp/config/MessageBrokerConfigurationTests.java
@@ -77,6 +77,7 @@ import org.springframework.validation.Validator; import org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.Mockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/DefaultStompSessionTests.java
@@ -46,6 +46,7 @@ import org.springframework.util.MimeTypeUtils; import org.springframework.util.concurrent.SettableListenableFuture; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.mockito.Mockito.any;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/ReactorNettyTcpStompClientTests.java
@@ -40,6 +40,7 @@ import org.springframework.util.SocketUtils; import org.springframework.util.concurrent.ListenableFuture; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompHeaderAccessorTests.java
@@ -37,6 +37,7 @@ import org.springframework.util.MimeTypeUtils; import org.springframework.util.MultiValueMap; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/simp/user/MultiServerUserRegistryTests.java
@@ -16,6 +16,7 @@ package org.springframework.messaging.simp.user; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.containsInAnyOrder; import static org.junit.Assert.*; import static org.mockito.Mockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/support/ErrorMessageTests.java
@@ -19,7 +19,7 @@ import org.junit.Test; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * @author Gary Russell
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/support/ExecutorSubscribableChannelTests.java
@@ -33,6 +33,7 @@ import org.springframework.messaging.MessageDeliveryException; import org.springframework.messaging.MessageHandler; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.mockito.BDDMockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-messaging/src/test/java/org/springframework/messaging/support/MessageHeaderAccessorTests.java
@@ -32,13 +32,13 @@ import org.springframework.util.SerializationTestUtils; import static org.hamcrest.CoreMatchers.startsWith; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEq...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-orm/src/test/java/org/springframework/orm/jpa/SharedEntityManagerCreatorTests.java
@@ -28,6 +28,7 @@ import org.mockito.junit.MockitoJUnitRunner; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.BDDMockito.*; import static org.mockito.BDDMockito.verifyNoMoreInteractions;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/DefaultPersistenceUnitManagerTests.java
@@ -23,8 +23,8 @@ import org.springframework.core.io.DefaultResourceLoader; import org.springframework.orm.jpa.domain.Person; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * Tests for {@link DefaultPersistenceUnitManager}.
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-oxm/src/test/java/org/springframework/oxm/AbstractMarshallerTests.java
@@ -37,7 +37,7 @@ import java.io.ByteArrayOutputStream; import java.io.StringWriter; -import static org.junit.Assert.assertThat; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertTrue; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java
@@ -54,9 +54,9 @@ import java.lang.reflect.Type; import java.util.Collections; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; imp...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-oxm/src/test/java/org/springframework/oxm/xstream/XStreamMarshallerTests.java
@@ -58,6 +58,7 @@ import org.springframework.util.xml.StaxUtils; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.BDDMockito.*; import static org.xmlunit.matchers.CompareMatcher.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/DispatcherHandlerErrorTests.java
@@ -52,6 +52,7 @@ import static org.hamcrest.CoreMatchers.instanceOf; import static org.hamcrest.CoreMatchers.startsWith; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.junit.Assert.*; import static org.springframework.http.MediaType.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/config/ResourceHandlerRegistryTests.java
@@ -49,10 +49,10 @@ import org.springframework.web.reactive.resource.VersionResourceResolver; import org.springframework.web.reactive.resource.WebJarsResourceResolver; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; im...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/function/BodyInsertersTests.java
@@ -68,6 +68,7 @@ import org.springframework.util.MultiValueMap; import static java.nio.charset.StandardCharsets.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.springframework.http.codec.json.Jackson2CodecSupport...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java
@@ -56,6 +56,7 @@ import org.springframework.http.client.reactive.ReactorClientHttpConnector; import org.springframework.http.codec.Pojo; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/resource/AppCacheManifestTransformerTests.java
@@ -29,6 +29,7 @@ import org.springframework.mock.web.test.server.MockServerWebExchange; import org.springframework.util.FileCopyUtils; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.springframework.mock.http.server...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceUrlProviderTests.java
@@ -39,6 +39,7 @@ import org.springframework.web.reactive.handler.SimpleUrlHandlerMapping; import org.springframework.web.util.pattern.PathPattern; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.springframework.mock.http.server.reactive.test.MockServerHtt...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceWebHandlerTests.java
@@ -55,6 +55,7 @@ import org.springframework.web.server.ResponseStatusException; import org.springframework.web.server.ServerWebExchange; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.mockito.ArgumentMatchers.any;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/resource/VersionResourceResolverTests.java
@@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.web.reactive.resource; import java.time.Duration; @@ -33,6 +34,7 @@ import org.springframework.mock.web.test.server.MockServerWebExchange; import org.spri...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/HandlerMethodMappingTests.java
@@ -35,6 +35,7 @@ import org.springframework.web.util.pattern.PathPattern; import org.springframework.web.util.pattern.PathPatternParser; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/InvocableHandlerMethodTests.java
@@ -42,6 +42,7 @@ import org.springframework.web.server.ServerWebExchange; import org.springframework.web.server.UnsupportedMediaTypeStatusException; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.mockito.Mockito.an...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMappingTests.java
@@ -59,6 +59,7 @@ import org.springframework.web.util.pattern.PathPattern; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.springframework.mock.http.server.reactive.test.MockServerHttpRequest.*; import static org...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/GlobalCorsConfigIntegrationTests.java
@@ -36,6 +36,7 @@ import org.springframework.web.reactive.config.CorsRegistry; import org.springframework.web.reactive.config.WebFluxConfigurationSupport; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/socket/WebSocketIntegrationTests.java
@@ -38,6 +38,7 @@ import org.springframework.web.reactive.HandlerMapping; import org.springframework.web.reactive.handler.SimpleUrlHandlerMapping; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-webflux/src/test/java/org/springframework/web/reactive/socket/server/support/HandshakeWebSocketServiceTests.java
@@ -33,6 +33,7 @@ import org.springframework.web.reactive.socket.server.RequestUpgradeStrategy; import org.springframework.web.server.ServerWebExchange; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.Mockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-websocket/src/test/java/org/springframework/web/socket/TextMessageTests.java
@@ -19,7 +19,7 @@ import org.hamcrest.Matchers; import org.junit.Test; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Test fixture for {@link TextMessage}.
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-websocket/src/test/java/org/springframework/web/socket/WebSocketExtensionTests.java
@@ -21,6 +21,7 @@ import org.hamcrest.Matchers; import org.junit.Test; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-websocket/src/test/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupportTests.java
@@ -40,8 +40,8 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationContext; import org.springframework.web.socket.ContextLoaderTestUtils; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * Test for {...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-websocket/src/test/java/org/springframework/web/socket/config/HandlersBeanDefinitionParserTests.java
@@ -60,6 +60,7 @@ import org.springframework.web.socket.sockjs.transport.handler.XhrReceivingTransportHandler; import org.springframework.web.socket.sockjs.transport.handler.XhrStreamingTransportHandler; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-websocket/src/test/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParserTests.java
@@ -90,6 +90,7 @@ import org.springframework.web.socket.sockjs.transport.handler.DefaultSockJsService; import org.springframework.web.socket.sockjs.transport.handler.WebSocketTransportHandler; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Asse...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-websocket/src/test/java/org/springframework/web/socket/handler/WebSocketHttpHeadersTests.java
@@ -26,7 +26,7 @@ import org.springframework.web.socket.WebSocketExtension; import org.springframework.web.socket.WebSocketHttpHeaders; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Unit tests for WebSocketHttpHeaders.
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-websocket/src/test/java/org/springframework/web/socket/messaging/StompSubProtocolHandlerTests.java
@@ -59,6 +59,7 @@ import org.springframework.web.socket.handler.TestWebSocketSession; import org.springframework.web.socket.sockjs.transport.SockJsSession; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.mockito.Mock...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-websocket/src/test/java/org/springframework/web/socket/messaging/WebSocketStompClientIntegrationTests.java
@@ -13,10 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.web.socket.messaging; -import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; +package org.springframework.web.socket.messaging; import ...
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-websocket/src/test/java/org/springframework/web/socket/sockjs/client/ClientSockJsSessionTests.java
@@ -37,6 +37,7 @@ import org.springframework.web.socket.sockjs.transport.TransportType; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.BDDMockito.*;
true
Other
spring-projects
spring-framework
47c39304afe43d904a5a48c8273cab187ddeebce.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-websocket/src/test/java/org/springframework/web/socket/sockjs/client/SockJsUrlInfoTests.java
@@ -18,7 +18,6 @@ import java.net.URI; -import org.junit.Assert; import org.junit.Test; import org.springframework.web.socket.sockjs.transport.TransportType; @@ -29,11 +28,11 @@ /** * Unit tests for {@code SockJsUrlInfo}. + * * @author Rossen Stoyanchev */ public class SockJsUrlInfoTests { - @Tes...
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java
@@ -59,6 +59,7 @@ import org.springframework.util.ObjectUtils; import static org.hamcrest.Matchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-aop/src/test/java/org/springframework/aop/framework/ProxyFactoryTests.java
@@ -43,6 +43,7 @@ import org.springframework.tests.sample.beans.TestBean; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java
@@ -35,6 +35,7 @@ import org.springframework.util.SerializationTestUtils; import static org.hamcrest.Matchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.BDDMockito.*;
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/AbstractPropertyAccessorTests.java
@@ -64,6 +64,7 @@ import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.CoreMatchers.nullValue; import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/BeanWrapperAutoGrowingTests.java
@@ -23,6 +23,7 @@ import org.junit.Test; import static org.hamcrest.Matchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/CachedIntrospectionResultsTests.java
@@ -26,6 +26,7 @@ import org.springframework.tests.sample.beans.TestBean; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/ExtendedBeanInfoFactoryTests.java
@@ -21,7 +21,7 @@ import org.junit.Test; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Unit tests for {@link ExtendedBeanInfoTests}.
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/ExtendedBeanInfoTests.java
@@ -29,6 +29,7 @@ import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/MutablePropertyValuesTests.java
@@ -21,6 +21,7 @@ import org.junit.Test; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/PropertyMatchesTests.java
@@ -18,8 +18,8 @@ import org.junit.Test; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * Tests for {@link PropertyMatches}.
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/SimplePropertyDescriptorTests.java
@@ -24,7 +24,7 @@ import org.junit.Test; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * @author Chris Beams
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java
@@ -103,6 +103,7 @@ import org.springframework.util.StringValueResolver; import static org.hamcrest.Matchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.BDDMockito.*;
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/factory/FactoryBeanLookupTests.java
@@ -26,6 +26,7 @@ import org.springframework.core.io.ClassPathResource; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/factory/Spr5475Tests.java
@@ -24,6 +24,7 @@ import org.springframework.beans.factory.support.RootBeanDefinition; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.springframework.beans.factory.support.BeanDefinitionBuilder.*;
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/factory/config/YamlPropertiesFactoryBeanTests.java
@@ -29,8 +29,8 @@ import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.ClassPathResource; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; import static org.springframework.beans.factory.config.YamlP...
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/factory/support/Spr8954Tests.java
@@ -27,7 +27,7 @@ import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Unit tests for SPR-8954, in which a custom {@link Instantiation...
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/factory/xml/DuplicateBeanIdTests.java
@@ -23,6 +23,7 @@ import org.springframework.tests.sample.beans.TestBean; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/factory/xml/NestedBeansElementAttributeRecursionTests.java
@@ -25,8 +25,8 @@ import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.not; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.hasItems; -import static org.junit.Assert.*; /** * Tests for propagating enclosing beans element defaults to nest...
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/factory/xml/NestedBeansElementTests.java
@@ -9,7 +9,7 @@ import org.springframework.core.io.Resource; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Tests for new nested beans element support in Spring XML
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-beans/src/test/java/org/springframework/beans/factory/xml/ProfileXmlBeanDefinitionTests.java
@@ -28,7 +28,7 @@ import org.springframework.core.io.ClassPathResource; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Tests various combinations of profile declarations against various profile
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context-indexer/src/test/java/org/springframework/context/index/processor/CandidateComponentsIndexerTests.java
@@ -30,7 +30,6 @@ import org.junit.Before; import org.junit.Rule; import org.junit.Test; -import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; import org.springframework.context.index.sample.AbstractController; @@ -61,8 +60,8 @@ import org.springframework.stereotype.Component; impo...
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context-indexer/src/test/java/org/springframework/context/index/processor/PropertiesMarshallerTests.java
@@ -24,8 +24,8 @@ import org.junit.Test; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; import static org.springframework.context.index.processor.Metadata.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context-support/src/test/java/org/springframework/cache/transaction/AbstractTransactionSupportingCacheManagerTests.java
@@ -23,6 +23,7 @@ import org.springframework.cache.Cache; import org.springframework.cache.CacheManager; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context-support/src/test/java/org/springframework/validation/beanvalidation2/SpringValidatorAdapterTests.java
@@ -56,6 +56,7 @@ import static java.lang.annotation.ElementType.*; import static java.lang.annotation.RetentionPolicy.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.*; import static org.hamcrest.core.StringContains.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context-support/src/test/java/org/springframework/validation/beanvalidation2/ValidatorFactoryTests.java
@@ -52,6 +52,7 @@ import org.springframework.validation.ObjectError; import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context/src/test/java/org/springframework/aop/framework/CglibProxyTests.java
@@ -37,6 +37,7 @@ import org.springframework.tests.sample.beans.TestBean; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context/src/test/java/org/springframework/aop/framework/ObjenesisProxyTests.java
@@ -23,7 +23,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Integration test for Objenesis proxy creation.
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context/src/test/java/org/springframework/aop/framework/ProxyFactoryBeanTests.java
@@ -62,6 +62,7 @@ import org.springframework.util.SerializationTestUtils; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTests.java
@@ -68,6 +68,7 @@ import org.springframework.util.StopWatch; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context/src/test/java/org/springframework/cache/AbstractCacheTests.java
@@ -26,6 +26,7 @@ import org.junit.Test; import org.junit.rules.ExpectedException; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context/src/test/java/org/springframework/cache/annotation/AnnotationCacheOperationSourceTests.java
@@ -36,6 +36,7 @@ import org.springframework.core.annotation.AliasFor; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context/src/test/java/org/springframework/cache/config/AbstractCacheAnnotationTests.java
@@ -31,6 +31,7 @@ import org.springframework.context.ConfigurableApplicationContext; import static org.hamcrest.Matchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; /**
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context/src/test/java/org/springframework/cache/interceptor/ExpressionEvaluatorTests.java
@@ -36,6 +36,7 @@ import org.springframework.expression.spel.standard.SpelExpressionParser; import org.springframework.util.ReflectionUtils; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
c79fdfb66871a6bb2d643f0d4a0296bbb4c0bac0.json
Use assertThat from Hamcrest instead of JUnit 4 org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
spring-context/src/test/java/org/springframework/cache/interceptor/SimpleKeyGeneratorTests.java
@@ -18,8 +18,8 @@ import org.junit.Test; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * Tests for {@link SimpleKeyGenerator} and {@link SimpleKey}.
true