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 | 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/context/annotation/AnnotationConfigApplicationContextTests.java | @@ -34,6 +34,7 @@
import org.springframework.util.ObjectUtils;
import static java.lang.String.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import static org.springframework.util.StringUtils.*; | 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/context/annotation/BeanMethodMetadataTests.java | @@ -25,8 +25,8 @@
import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition;
import org.springframework.beans.factory.config.BeanDefinition;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
/**
* @author Phillip W... | 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/context/annotation/BeanMethodPolymorphismTests.java | @@ -26,6 +26,7 @@
import org.springframework.beans.factory.support.RootBeanDefinition;
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/context/annotation/ClassPathScanningCandidateComponentProviderTests.java | @@ -56,6 +56,7 @@
import org.springframework.stereotype.Service;
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/context/annotation/ComponentScanAnnotationIntegrationTests.java | @@ -63,6 +63,7 @@
import org.springframework.util.SerializationTestUtils;
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-context/src/test/java/org/springframework/context/annotation/ComponentScanAnnotationRecursionTests.java | @@ -24,7 +24,7 @@
import org.springframework.context.annotation.componentscan.level3.Level3Component;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests ensuring that configuration classes marked with @ComponentScan | 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/context/annotation/ComponentScanParserTests.java | @@ -34,6 +34,7 @@
import org.springframework.core.type.filter.TypeFilter;
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/context/annotation/ConfigurationClassAndBFPPTests.java | @@ -25,7 +25,7 @@
import org.springframework.tests.sample.beans.TestBean;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests semantics of declaring {@link BeanFactoryPostProcessor}-returning @Bean
@@ -115,5 +115,4 @@ p... | 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/context/annotation/ConfigurationClassPostConstructAndAutowiringTests.java | @@ -24,7 +24,7 @@
import org.springframework.tests.sample.beans.TestBean;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests cornering the issue reported in SPR-8080. If the product of a @Bean method | 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/context/annotation/ConfigurationClassWithConditionTests.java | @@ -32,6 +32,7 @@
import org.springframework.stereotype.Component;
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/context/annotation/DestroyMethodInferenceTests.java | @@ -25,7 +25,7 @@
import org.springframework.context.support.GenericXmlApplicationContext;
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-context/src/test/java/org/springframework/context/annotation/EnableAspectJAutoProxyTests.java | @@ -33,6 +33,7 @@
import org.springframework.context.ConfigurableApplicationContext;
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/context/annotation/ImportAwareTests.java | @@ -37,6 +37,7 @@
import org.springframework.util.Assert;
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/context/annotation/ImportBeanDefinitionRegistrarTests.java | @@ -36,7 +36,7 @@
import org.springframework.core.type.AnnotationMetadata;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Integration tests for {@link ImportBeanDefinitionRegistrar}. | 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/context/annotation/ImportSelectorTests.java | @@ -53,9 +53,8 @@
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
-import static org.mockito.Mockito.any;
import static org.mockito.Mo... | 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/context/annotation/NestedConfigurationClassTests.java | @@ -22,6 +22,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/context/annotation/PrimitiveBeanLookupAndAutowiringTests.java | @@ -24,7 +24,7 @@
import org.springframework.context.ApplicationContext;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests changes introduced for SPR-8874, allowing beans of primitive types to be looked | 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/context/annotation/PropertySourceAnnotationTests.java | @@ -41,6 +41,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/context/annotation/ReflectionUtilsIntegrationTests.java | @@ -23,6 +23,7 @@
import org.springframework.util.ReflectionUtils;
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/context/annotation/RoleAndDescriptionAnnotationTests.java | @@ -23,7 +23,7 @@
import org.springframework.context.annotation.role.ComponentWithoutRole;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests the use of the @Role and @Description annotation on @Bean methods and @Compo... | 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/context/annotation/Spr12278Tests.java | @@ -23,8 +23,8 @@
import org.springframework.beans.factory.BeanCreationException;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.*;
-import static org.junit.Assert.*;
/**
* @author Stephane Nicoll | 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/context/annotation/Spr6602Tests.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;
/**
* Tests to verify that FactoryBean semantics are the same in Configuration | 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/context/annotation/Spr8954Tests.java | @@ -26,7 +26,7 @@
import org.springframework.beans.factory.support.RootBeanDefinition;
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 InstantiationAwareBeanPostProcessor} | 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/context/annotation/configuration/AutowiredConfigurationTests.java | @@ -45,6 +45,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/context/annotation/configuration/BeanMethodQualificationTests.java | @@ -36,6 +36,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/context/annotation/configuration/ConfigurationBeanNameTests.java | @@ -28,7 +28,7 @@
import org.springframework.stereotype.Component;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Unit tests ensuring that configuration class bean names as expressed via @Configuration | 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/context/annotation/configuration/ConfigurationClassAspectIntegrationTests.java | @@ -36,7 +36,7 @@
import org.springframework.tests.sample.beans.TestBean;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* System tests covering use of AspectJ {@link Aspect}s in conjunction with {@link Configuration} clas... | 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/context/annotation/configuration/ConfigurationClassWithPlaceholderConfigurerBeanTests.java | @@ -27,7 +27,7 @@
import org.springframework.tests.sample.beans.TestBean;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* A configuration class that registers a non-static placeholder configurer {@code @Bean} | 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/context/annotation/configuration/ConfigurationMetaAnnotationTests.java | @@ -27,7 +27,7 @@
import org.springframework.tests.sample.beans.TestBean;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Ensures that @Configuration is supported properly as a meta-annotation. | 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/context/annotation/configuration/ImportAnnotationDetectionTests.java | @@ -30,7 +30,7 @@
import org.springframework.tests.sample.beans.TestBean;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests that @Import may be used both as a locally declared and meta-declared | 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/context/annotation/configuration/ImportResourceTests.java | @@ -35,6 +35,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/context/annotation/configuration/ImportTests.java | @@ -30,6 +30,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/context/annotation/configuration/ImportedConfigurationClassEnhancementTests.java | @@ -28,6 +28,7 @@
import org.springframework.util.ClassUtils;
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/context/annotation/configuration/PackagePrivateBeanMethodInheritanceTests.java | @@ -23,7 +23,7 @@
import org.springframework.context.annotation.Configuration;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Reproduces SPR-8756, which has been marked as "won't fix" for reasons | 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/context/annotation/configuration/Spr10744Tests.java | @@ -25,8 +25,8 @@
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
/**
* @author Phillip Webb | 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/context/annotation/configuration/Spr7167Tests.java | @@ -29,9 +29,11 @@
import org.springframework.util.ClassUtils;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
public class Spr7167Tests {
+
@Test
public void test() {
ConfigurableApplicationContext ctx = new AnnotationCon... | 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/context/annotation/configuration/spr9031/Spr9031Tests.java | @@ -27,7 +27,7 @@
import org.springframework.context.annotation.configuration.spr9031.scanpackage.Spr9031Component;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Unit tests cornering bug SPR-9031. | 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/context/annotation/spr10546/Spr10546Tests.java | @@ -26,10 +26,9 @@
import org.springframework.context.annotation.spr10546.scanpackage.AEnclosingConfig;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
- *
* @author Rob Winch
*/
public class Spr10546Tests {
@@ -146,4 +1... | 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/context/annotation/spr8761/Spr8761Tests.java | @@ -25,7 +25,7 @@
import org.springframework.stereotype.Component;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests cornering the regression reported in SPR-8761. | 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/context/event/AnnotationDrivenEventListenerTests.java | @@ -66,6 +66,7 @@
import org.springframework.validation.annotation.Validated;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;
+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/context/index/CandidateComponentsIndexLoaderTests.java | @@ -26,7 +26,7 @@
import org.springframework.core.io.ClassPathResource;
import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests for {@link CandidateComponentsIndexLoader}. | 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/context/index/CandidateComponentsIndexTests.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.*;
/**
* Tests for {@link CandidateComponentsIndex}. | 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/context/support/ConversionServiceFactoryBeanTests.java | @@ -34,6 +34,7 @@
import org.springframework.lang.Nullable;
import org.springframework.tests.sample.beans.ResourceTestBean;
+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/context/support/EnvironmentIntegrationTests.java | @@ -25,7 +25,7 @@
import org.springframework.core.env.Environment;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests covering the integration of the {@link Environment} into | 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/context/support/EnvironmentSecurityManagerIntegrationTests.java | @@ -33,7 +33,7 @@
import static java.lang.String.format;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests integration between Environment and SecurityManagers. See SPR-9970. | 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/context/support/GenericXmlApplicationContextTests.java | @@ -6,7 +6,7 @@
import org.springframework.util.ClassUtils;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Unit tests for {@link GenericXmlApplicationContext}. | 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/context/support/PropertySourcesPlaceholderConfigurerTests.java | @@ -36,6 +36,7 @@
import org.springframework.tests.sample.beans.TestBean;
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-context/src/test/java/org/springframework/context/support/SerializableBeanFactoryMemoryLeakTests.java | @@ -30,7 +30,7 @@
import org.springframework.context.ConfigurableApplicationContext;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
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-context/src/test/java/org/springframework/format/datetime/DateFormatterTests.java | @@ -32,8 +32,8 @@
import org.springframework.format.annotation.DateTimeFormat.ISO;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
/**
* Tests for {@link DateFormatter}. | 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/format/datetime/joda/DateTimeFormatterFactoryBeanTests.java | @@ -21,7 +21,7 @@
import org.junit.Test;
import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Phillip Webb | 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/format/datetime/joda/DateTimeFormatterFactoryTests.java | @@ -27,6 +27,7 @@
import org.springframework.format.annotation.DateTimeFormat.ISO;
+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/format/datetime/standard/DateTimeFormatterFactoryBeanTests.java | @@ -22,7 +22,7 @@
import org.junit.Test;
import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Phillip Webb | 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/format/datetime/standard/DateTimeFormatterFactoryTests.java | @@ -28,6 +28,7 @@
import org.springframework.format.annotation.DateTimeFormat.ISO;
+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/jndi/JndiLocatorDelegateTests.java | @@ -22,7 +22,7 @@
import org.junit.Test;
import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests for {@link JndiLocatorDelegate}. | 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/jndi/JndiPropertySourceTests.java | @@ -24,6 +24,7 @@
import org.springframework.tests.mock.jndi.SimpleNamingContext;
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/scheduling/annotation/AnnotationAsyncExecutionInterceptorTests.java | @@ -22,7 +22,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 AnnotationAsyncExecutionInterceptor}. | 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/scheduling/annotation/EnableAsyncTests.java | @@ -28,7 +28,6 @@
import java.util.concurrent.TimeUnit;
import org.awaitility.Awaitility;
-import org.junit.Assert;
import org.junit.Test;
import org.mockito.Mockito;
@@ -55,6 +54,7 @@
import org.springframework.stereotype.Component;
import org.springframework.util.ReflectionUtils;
+import static org.hamcre... | 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/scheduling/annotation/EnableSchedulingTests.java | @@ -35,6 +35,7 @@
import org.springframework.tests.Assume;
import org.springframework.tests.TestGroup;
+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/scheduling/config/ScheduledTasksBeanDefinitionParserTests.java | @@ -31,6 +31,7 @@
import org.springframework.scheduling.support.ScheduledMethodRunnable;
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/validation/DefaultMessageCodesResolverTests.java | @@ -22,7 +22,7 @@
import org.springframework.validation.DefaultMessageCodesResolver.Format;
import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests for {@link DefaultMessageCodesResolver}.
@@ -157,4 +157,5 @@ public String form... | 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/validation/beanvalidation/SpringValidatorAdapterTests.java | @@ -53,6 +53,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/src/test/java/org/springframework/validation/beanvalidation/ValidatorFactoryTests.java | @@ -51,6 +51,7 @@
import org.springframework.validation.FieldError;
import org.springframework.validation.ObjectError;
+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 | src/test/java/com/foo/ComponentBeanDefinitionParserTests.java | @@ -17,7 +17,7 @@
package com.foo;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import java.util.List;
| 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 | src/test/java/org/springframework/cache/annotation/EnableCachingIntegrationTests.java | @@ -34,6 +34,7 @@
import org.springframework.stereotype.Repository;
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 | src/test/java/org/springframework/core/env/EnvironmentSystemIntegrationTests.java | @@ -58,6 +58,7 @@
import org.springframework.web.context.support.XmlWebApplicationContext;
import static org.hamcrest.Matchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
import static org.springframework.beans.factory.support.BeanDefinitionBuilder.*;
import static ... | 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 | src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java | @@ -40,6 +40,7 @@
import org.springframework.transaction.annotation.Transactional;
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 | src/test/java/org/springframework/transaction/annotation/EnableTransactionManagementIntegrationTests.java | @@ -44,6 +44,7 @@
import org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor;
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 | src/test/java/org/springframework/transaction/annotation/ProxyAnnotationDiscoveryTests.java | @@ -18,7 +18,7 @@
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.not;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertTrue;
import org.junit.Test; | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/mock/web/MockFilterChainTests.java | @@ -29,6 +29,7 @@
import org.junit.Test;
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 | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/context/ContextHierarchyDirtiesContextTests.java | @@ -35,6 +35,7 @@
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
/** | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/context/TestContextConcurrencyTests.java | @@ -27,8 +27,8 @@
import static java.util.Arrays.stream;
import static java.util.stream.Collectors.toCollection;
import static org.hamcrest.CoreMatchers.equalTo;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
/**
* ... | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/context/configuration/interfaces/TestPropertySourceInterfaceTests.java | @@ -25,7 +25,7 @@
import org.springframework.test.context.junit4.SpringRunner;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Sam Brannen | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/context/env/InlinedPropertiesTestPropertySourceTests.java | @@ -28,6 +28,7 @@
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
import static org.springframework.test.context.support.TestPropertySourceUtils.*;
| true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/context/event/EventPublishingTestExecutionListenerIntegrationTests.java | @@ -55,7 +55,7 @@
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.startsWith;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.mock;... | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/context/junit4/spr6128/AutowiredQualifierTests.java | @@ -24,8 +24,8 @@
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.*;
-import static org.junit.Assert.*;
/**
* Integration tests to... | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsContextHierarchyTests.java | @@ -32,6 +32,7 @@
import org.springframework.test.context.ContextLoader;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
import static org.springframework.test.context.support.ContextLoaderUtils.*;
| true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/jdbc/JdbcTestUtilsTests.java | @@ -24,7 +24,7 @@
import org.springframework.jdbc.core.JdbcTemplate;
import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.BDDMockito.*;
/** | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/util/AopTestUtilsTests.java | @@ -22,6 +22,7 @@
import org.springframework.aop.support.AopUtils;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
import static org.springframework.test.util.AopTestUtils.*;
| true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/ResponseEntityTests.java | @@ -41,6 +41,7 @@
import static java.time.Duration.*;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
import static org.springframework.http.MediaType.*;
| true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/DelegatingWebConnectionTests.java | @@ -41,9 +41,9 @@
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.sameInstance;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.core.IsNot.not;
-import static org.junit.Assert.*;
import static org.moc... | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/HtmlUnitRequestBuilderTests.java | @@ -46,14 +46,14 @@
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import static java.util.Arrays.asList;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.isEmpt... | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcConnectionBuilderSupportTests.java | @@ -43,8 +43,8 @@
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.nullValue;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.notNullValue;
-import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.mock;
import ... | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebClientBuilderTests.java | @@ -49,7 +49,7 @@
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Integration tests for {@link MockMvcWebClientBuilder}. | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebConnectionTests.java | @@ -27,6 +27,7 @@
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
/** | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockWebResponseBuilderTests.java | @@ -30,7 +30,7 @@
import org.springframework.mock.web.MockHttpServletResponse;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests for {@link MockWebResponseBuilder}. | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java | @@ -41,6 +41,7 @@
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
/** | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/web/servlet/samples/spr/CustomRequestAttributesRequestContextHolderTests.java | @@ -44,7 +44,7 @@
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.springframework.test.web.servlet.re... | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-test/src/test/java/org/springframework/test/web/servlet/samples/spr/RequestContextHolderTests.java | @@ -52,6 +52,7 @@
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
impo... | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-tx/src/test/java/org/springframework/transaction/TxNamespaceHandlerEventTests.java | @@ -27,7 +27,7 @@
import org.springframework.tests.beans.CollectingReaderEventListener;
import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Torsten Juergeleit | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-tx/src/test/java/org/springframework/transaction/annotation/EnableTransactionManagementTests.java | @@ -39,6 +39,7 @@
import org.springframework.transaction.event.TransactionalEventListenerFactory;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
/** | true |
Other | spring-projects | spring-framework | d4379630e24090ce086cc7baced731a38a1753d2.json | Use assertThat from Hamcrest instead of JUnit 4
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894 | spring-tx/src/test/java/org/springframework/transaction/interceptor/RollbackRuleTests.java | @@ -23,6 +23,7 @@
import org.springframework.beans.FatalBeanException;
import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.*;
/** | true |
Other | spring-projects | spring-framework | d463598c09ad653d821bb9048c19f34661198390.json | Defer ExchangeFilterFunction to subscription time
Prior to this commit, the `ExchangeFilterFunction` instances configured
on a `WebClient` instance would be executed as soon as the `exchange`
method would be called. This behavior is not consistent with the server
side and can confuse filter developers as they'd need t... | spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 the original author or authors.
+ * Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -316,7 +316,8 @@ public Mono<ClientResponse>... | true |
Other | spring-projects | spring-framework | d463598c09ad653d821bb9048c19f34661198390.json | Defer ExchangeFilterFunction to subscription time
Prior to this commit, the `ExchangeFilterFunction` instances configured
on a `WebClient` instance would be executed as soon as the `exchange`
method would be called. This behavior is not consistent with the server
side and can confuse filter developers as they'd need t... | spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFilterFunction.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 the original author or authors.
+ * Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,9 @@
import org.springframework.u... | true |
Other | spring-projects | spring-framework | d463598c09ad653d821bb9048c19f34661198390.json | Defer ExchangeFilterFunction to subscription time
Prior to this commit, the `ExchangeFilterFunction` instances configured
on a `WebClient` instance would be executed as soon as the `exchange`
method would be called. This behavior is not consistent with the server
side and can confuse filter developers as they'd need t... | spring-webflux/src/test/java/org/springframework/web/reactive/function/client/DefaultWebClientTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 the original author or authors.
+ * Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,6 +41,7 @@
* Unit tests for {@link Def... | true |
Other | spring-projects | spring-framework | 2a0a002bd3c34f8ce22561fcdc2b968b7b309c8f.json | Improve Kotlin documentation
Closes gh-22400 | src/docs/asciidoc/languages/kotlin.adoc | @@ -186,15 +186,28 @@ In Java, you can, for example, write the following:
----
====
-In Kotlin, with reified type parameters and `GenericApplicationContext`
-Kotlin extensions, you can instead write the following:
+In Kotlin, with reified type parameters and `GenericApplicationContext` Kotlin extensions,
+you can i... | false |
Other | spring-projects | spring-framework | 514f7e33289d6bc83d48bb4e07d3a52032e68961.json | Add link to Kotlin sample for Spring Cloud GCP
Closes gh-2070 | src/docs/asciidoc/languages/kotlin.adoc | @@ -755,6 +755,7 @@ The following Github projects offer examples that you can learn from and possibl
* https://github.com/sdeleuze/spring-kotlin-fullstack[spring-kotlin-fullstack]: WebFlux Kotlin fullstack example with Kotlin2js for frontend instead of JavaScript or TypeScript
* https://github.com/spring-petclinic/sp... | false |
Other | spring-projects | spring-framework | 64c86623ee7c0d175b3344178fc222d67318ac81.json | Fix casing for GitHub in the contributing guide
Closes gh-22373 | CONTRIBUTING.md | @@ -29,7 +29,7 @@ If you have a question, check StackOverflow using
Find an existing discussion or start a new one if necessary.
If you suspect an issue, perform a search in the
-[Github issue tracker](https://github.com/spring-projects/spring-framework/issues), using a few different keywords.
+[GitHub issue tracke... | false |
Other | spring-projects | spring-framework | 2b974da3959f8cccc9c2757a20bcaa5d4bf3b129.json | Use snapshot instead of libs-snapshot repository
The latter has stale Reactor snapshots | build.gradle | @@ -149,7 +149,7 @@ configure(allprojects) { project ->
repositories {
maven { url "https://repo.spring.io/libs-release" }
- maven { url "https://repo.spring.io/libs-snapshot" } // Reactor
+ maven { url "https://repo.spring.io/snapshot" } // Reactor
}
dependencies { | false |
Other | spring-projects | spring-framework | ef8652615c3d5e6431a493ba567786e952439425.json | Log exception at ERROR level in CompositeLog
Fixes gh-22364 | spring-core/src/main/java/org/springframework/core/log/CompositeLog.java | @@ -114,7 +114,7 @@ public void error(Object message) {
@Override
public void error(Object message, Throwable ex) {
- this.errorLogger.error(message);
+ this.errorLogger.error(message, ex);
}
@Override | false |
Other | spring-projects | spring-framework | ba8849dda3b22e33588734ec2aea9e4457070e94.json | Avoid MimeType garbage creation
Prior to this commit, calls to `MimeType` and `MediaType` would create a
significant amount of garbage:
* during startup time, in the static sections of `MimeType` and
`MediaType` when creating well-known types
* at runtime, when parsing media types for content negotiation or
writing k... | spring-core/src/main/java/org/springframework/util/MimeType.java | @@ -103,6 +103,8 @@ public class MimeType implements Comparable<MimeType>, Serializable {
private final Map<String, String> parameters;
+ private String mimetype;
+
/**
* Create a new {@code MimeType} for the given primary type.
@@ -469,9 +471,12 @@ public int hashCode() {
@Override
public String toS... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.