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
4aaec942c4a67bf96a39393bba83ec5b5ae2d040.json
Introduce HTTPS mappings in spring.schemas files Closes gh-22903
spring-websocket/src/main/resources/META-INF/spring.schemas
@@ -3,3 +3,8 @@ http\://www.springframework.org/schema/websocket/spring-websocket-4.1.xsd=org/sp http\://www.springframework.org/schema/websocket/spring-websocket-4.2.xsd=org/springframework/web/socket/config/spring-websocket.xsd http\://www.springframework.org/schema/websocket/spring-websocket-4.3.xsd=org/springfram...
true
Other
spring-projects
spring-framework
f747ba282aea2f7c542e4a59ef6b30f9016325c5.json
Add DataBufferUtils.matcher and split Added two methods to DataBufferUtils: * matcher(byte[]), which returns a Matcher object that can be used to find a delimiter in a data buffer. * split(Publisher<DataBuffer>, byte[] delimiter), which splits a given stream of data buffers around a given delimiter.
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java
@@ -28,6 +28,9 @@ import java.nio.channels.ReadableByteChannel; import java.nio.channels.WritableByteChannel; import java.nio.file.StandardOpenOption; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.atomic.AtomicBoolea...
true
Other
spring-projects
spring-framework
f747ba282aea2f7c542e4a59ef6b30f9016325c5.json
Add DataBufferUtils.matcher and split Added two methods to DataBufferUtils: * matcher(byte[]), which returns a Matcher object that can be used to find a delimiter in a data buffer. * split(Publisher<DataBuffer>, byte[] delimiter), which splits a given stream of data buffers around a given delimiter.
spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferUtilsTests.java
@@ -49,9 +49,7 @@ import org.springframework.core.io.buffer.support.DataBufferTestUtils; import static org.junit.Assert.*; -import static org.mockito.ArgumentMatchers.*; -import static org.mockito.Mockito.anyLong; -import static org.mockito.Mockito.isA; +import static org.mockito.ArgumentMatchers.any; import stati...
true
Other
spring-projects
spring-framework
47ff92873bc35345a0e0a743be4939527a27f896.json
Add null check
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/InvocableHandlerMethod.java
@@ -216,7 +216,7 @@ private void logArgumentErrorIfNecessary( // Leave stack trace for later, if error is not handled.. String message = cause.getMessage(); - if (!message.contains(parameter.getExecutable().toGenericString())) { + if (message != null && !message.contains(parameter.getExecutable().toGenericStr...
false
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-beans/src/test/java/org/springframework/beans/factory/ConcurrentBeanFactoryTests.java
@@ -30,12 +30,9 @@ import org.junit.Before; import org.junit.Test; -import org.springframework.beans.PropertyEditorRegistrar; -import org.springframework.beans.PropertyEditorRegistry; import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.beans.factory.xml.XmlBeanD...
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-core/src/test/java/org/springframework/core/CollectionFactoryTests.java
@@ -39,6 +39,7 @@ 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.springframework.core.CollectionFactory.*;
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-core/src/test/java/org/springframework/core/GenericTypeResolverTests.java
@@ -27,6 +27,7 @@ import org.junit.Test; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.springframework.core.GenericTypeResolver.*;
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-core/src/test/java/org/springframework/core/ResolvableTypeTests.java
@@ -53,6 +53,7 @@ import org.springframework.core.ResolvableType.VariableResolver; 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.BDDMockito.any;
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-core/src/test/java/org/springframework/core/SerializableTypeWrapperTests.java
@@ -31,8 +31,8 @@ import org.junit.Test; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * Tests for {@link SerializableTypeWrapper}.
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-core/src/test/java/org/springframework/core/annotation/AnnotationAttributesTests.java
@@ -28,6 +28,7 @@ import org.springframework.core.annotation.AnnotationUtilsTests.ImplicitAliasesContextConfig; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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-core/src/test/java/org/springframework/core/annotation/AnnotationAwareOrderComparatorTests.java
@@ -23,6 +23,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
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-core/src/test/java/org/springframework/core/convert/TypeDescriptorTests.java
@@ -42,6 +42,7 @@ 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.*;
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-core/src/test/java/org/springframework/core/convert/converter/ConvertingComparatorTests.java
@@ -30,7 +30,7 @@ import org.springframework.util.comparator.ComparableComparator; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Tests for {@link ConvertingComparator}.
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-core/src/test/java/org/springframework/core/convert/converter/DefaultConversionServiceTests.java
@@ -56,6 +56,7 @@ import org.springframework.util.ClassUtils; 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
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-core/src/test/java/org/springframework/core/convert/support/ByteBufferConverterTests.java
@@ -23,8 +23,8 @@ import org.springframework.core.convert.converter.Converter; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * Tests for {@link ByteBufferConverter}.
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-core/src/test/java/org/springframework/core/convert/support/GenericConversionServiceTests.java
@@ -51,6 +51,7 @@ import static java.util.Comparator.*; import static java.util.stream.Collectors.*; +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-core/src/test/java/org/springframework/core/convert/support/MapToMapConverterTests.java
@@ -33,6 +33,7 @@ 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.*;
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-core/src/test/java/org/springframework/core/env/CustomEnvironmentTests.java
@@ -23,7 +23,7 @@ import org.junit.Test; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Unit tests covering the extensibility of {@link AbstractEnvironment}.
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-core/src/test/java/org/springframework/core/env/JOptCommandLinePropertySourceTests.java
@@ -23,6 +23,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
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-core/src/test/java/org/springframework/core/env/MutablePropertySourcesTests.java
@@ -23,6 +23,7 @@ import org.springframework.mock.env.MockPropertySource; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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-core/src/test/java/org/springframework/core/env/PropertySourceTests.java
@@ -25,7 +25,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 PropertySource} implementations.
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-core/src/test/java/org/springframework/core/env/PropertySourcesPropertyResolverTests.java
@@ -26,6 +26,7 @@ import org.springframework.core.convert.ConverterNotFoundException; import org.springframework.mock.env.MockPropertySource; +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-core/src/test/java/org/springframework/core/env/SimpleCommandLineParserTests.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; public class SimpleCommandLineParserTests {
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-core/src/test/java/org/springframework/core/env/SimpleCommandLinePropertySourceTests.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 SimpleCommandLinePropertySource}. @@ -122,4 +122,5 @@ public void covertNonOptionArgsToStringArrayAndList() { ...
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-core/src/test/java/org/springframework/core/env/SystemEnvironmentPropertySourceTests.java
@@ -25,7 +25,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 SystemEnvironmentPropertySource}.
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-core/src/test/java/org/springframework/core/io/ClassPathResourceTests.java
@@ -23,6 +23,7 @@ import org.junit.Test; +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-core/src/test/java/org/springframework/core/io/ResourceTests.java
@@ -33,6 +33,7 @@ import org.springframework.util.FileCopyUtils; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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-core/src/test/java/org/springframework/core/io/support/ResourcePropertySourceTests.java
@@ -25,6 +25,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
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-core/src/test/java/org/springframework/core/task/SimpleAsyncTaskExecutorTests.java
@@ -25,6 +25,7 @@ import org.springframework.util.ConcurrencyThrottleSupport; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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-core/src/test/java/org/springframework/core/type/AbstractClassMetadataMemberClassTests.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; /** * Abstract base class for testing implementations of @@ -73,4 +73,5 @@ public void againstMemberClass() { String[] nestedClasses = ...
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-core/src/test/java/org/springframework/core/type/AnnotationMetadataTests.java
@@ -39,6 +39,7 @@ import org.springframework.stereotype.Component; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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-core/src/test/java/org/springframework/core/type/CachingMetadataReaderLeakTests.java
@@ -29,7 +29,7 @@ import org.springframework.tests.TestGroup; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Unit tests for checking the behaviour of {@link CachingMetadataReaderFactory} under
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-core/src/test/java/org/springframework/tests/AssumeTests.java
@@ -25,6 +25,7 @@ import static java.util.stream.Collectors.*; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.springframework.tests.Assume.*; import static org.springframework.tests.TestGroup.*;
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-core/src/test/java/org/springframework/tests/MockitoUtils.java
@@ -23,8 +23,8 @@ import org.mockito.internal.util.MockUtil; import org.mockito.invocation.Invocation; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * General test utilities for use with {@link Mockito}.
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-core/src/test/java/org/springframework/tests/TestGroupTests.java
@@ -24,8 +24,8 @@ import org.junit.Test; import org.junit.rules.ExpectedException; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * Tests for {@link TestGroup}.
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-core/src/test/java/org/springframework/util/ConcurrentReferenceHashMapTests.java
@@ -41,6 +41,7 @@ import org.springframework.util.comparator.ComparableComparator; import org.springframework.util.comparator.NullSafeComparator; +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-core/src/test/java/org/springframework/util/ObjectUtilsTests.java
@@ -29,6 +29,7 @@ import org.junit.rules.ExpectedException; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.springframework.util.ObjectUtils.*;
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-core/src/test/java/org/springframework/util/ReflectionUtilsTests.java
@@ -33,6 +33,7 @@ import org.springframework.tests.sample.objects.TestObject; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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-core/src/test/java/org/springframework/util/StreamUtilsTests.java
@@ -29,8 +29,8 @@ import org.junit.Test; import org.mockito.InOrder; +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
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-core/src/test/java/org/springframework/util/comparator/BooleanComparatorTests.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; /** * Tests for {@link BooleanComparator}.
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-core/src/test/java/org/springframework/util/comparator/InstanceComparatorTests.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; /** * Tests for {@link InstanceComparator}.
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-core/src/test/java/org/springframework/util/concurrent/SettableListenableFutureTests.java
@@ -24,6 +24,7 @@ import org.junit.Test; +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
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-core/src/test/java/org/springframework/util/xml/AbstractStaxHandlerTestCase.java
@@ -33,7 +33,7 @@ import org.xml.sax.XMLReader; import org.xmlunit.util.Predicate; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.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-core/src/test/java/org/springframework/util/xml/DomContentHandlerTests.java
@@ -27,7 +27,7 @@ import org.xml.sax.InputSource; import org.xml.sax.XMLReader; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.xmlunit.matchers.CompareMatcher.*; /**
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-core/src/test/java/org/springframework/util/xml/ListBasedXMLEventReaderTests.java
@@ -30,6 +30,7 @@ import org.junit.Test; import static javax.xml.stream.XMLStreamConstants.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.xmlunit.matchers.CompareMatcher.*;
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-core/src/test/java/org/springframework/util/xml/SimpleNamespaceContextTests.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 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-core/src/test/java/org/springframework/util/xml/StaxResultTests.java
@@ -30,9 +30,9 @@ import java.io.StringReader; import java.io.StringWriter; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertThat; import static org.xmlunit.matchers.CompareMatcher.i...
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-core/src/test/java/org/springframework/util/xml/StaxSourceTests.java
@@ -33,9 +33,9 @@ import java.io.StringReader; import java.io.StringWriter; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertThat; import static org.xmlunit.matchers.CompareMatcher.i...
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-core/src/test/java/org/springframework/util/xml/XMLEventStreamReaderTests.java
@@ -30,7 +30,7 @@ import java.io.StringReader; import java.io.StringWriter; -import static org.junit.Assert.assertThat; +import static org.hamcrest.MatcherAssert.assertThat; import static org.xmlunit.matchers.CompareMatcher.isSimilarTo; public class XMLEventStreamReaderTests {
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-core/src/test/java/org/springframework/util/xml/XMLEventStreamWriterTests.java
@@ -26,7 +26,7 @@ import javax.xml.stream.XMLOutputFactory; import java.io.StringWriter; -import static org.junit.Assert.assertThat; +import static org.hamcrest.MatcherAssert.assertThat; import static org.xmlunit.matchers.CompareMatcher.isSimilarTo; public class XMLEventStreamWriterTests {
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-web/src/test/java/org/springframework/http/CacheControlTests.java
@@ -19,11 +19,11 @@ import org.hamcrest.Matchers; import org.junit.Test; -import static org.junit.Assert.*; - import java.time.Duration; import java.util.concurrent.TimeUnit; +import static org.hamcrest.MatcherAssert.assertThat; + /** * @author Brian Clozel */
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-web/src/test/java/org/springframework/http/HttpHeadersTests.java
@@ -35,9 +35,9 @@ import java.util.TimeZone; import org.hamcrest.Matchers; -import org.junit.Ignore; import org.junit.Test; +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-web/src/test/java/org/springframework/http/HttpRangeTests.java
@@ -19,9 +19,7 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import java.util.stream.Stream; import org.junit.Test;
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-web/src/test/java/org/springframework/http/ResponseCookieTests.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
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-web/src/test/java/org/springframework/http/ResponseEntityTests.java
@@ -25,6 +25,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
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-web/src/test/java/org/springframework/http/client/support/InterceptingHttpAccessorTests.java
@@ -29,7 +29,7 @@ import org.springframework.http.client.ClientHttpRequestInterceptor; import org.springframework.http.client.ClientHttpResponse; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Tests for {@link InterceptingHttpAccessor}.
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-web/src/test/java/org/springframework/http/codec/ResourceHttpMessageWriterTests.java
@@ -34,11 +34,11 @@ import org.springframework.util.MimeTypeUtils; import org.springframework.util.StringUtils; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.containsInAnyOrder; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.startsWith; im...
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-web/src/test/java/org/springframework/http/codec/xml/Jaxb2XmlEncoderTests.java
@@ -34,6 +34,7 @@ import org.springframework.http.codec.Pojo; import static java.nio.charset.StandardCharsets.UTF_8; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.springframework.core.io.buffer.DataBufferUtils.release; import static org.xmlunit.matchers...
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-web/src/test/java/org/springframework/http/converter/FormHttpMessageConverterTests.java
@@ -47,11 +47,11 @@ import static org.hamcrest.CoreMatchers.allOf; import static org.hamcrest.CoreMatchers.endsWith; import static org.hamcrest.CoreMatchers.startsWith; +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
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-web/src/test/java/org/springframework/http/converter/ResourceHttpMessageConverterTests.java
@@ -37,6 +37,7 @@ import static org.hamcrest.core.Is.*; import static org.hamcrest.core.IsInstanceOf.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.BDDMockito.any; import static org.mockito.BDDMockito.*;
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-web/src/test/java/org/springframework/http/converter/ResourceRegionHttpMessageConverterTests.java
@@ -38,9 +38,9 @@ import org.springframework.http.MockHttpOutputMessage; import org.springframework.util.StringUtils; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertThat; import static...
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-web/src/test/java/org/springframework/http/converter/feed/AtomFeedHttpMessageConverterTests.java
@@ -16,9 +16,6 @@ package org.springframework.http.converter.feed; -import static org.junit.Assert.*; -import static org.xmlunit.matchers.CompareMatcher.*; - import java.io.IOException; import java.io.InputStream; import java.nio.charset.Charset; @@ -39,6 +36,10 @@ import org.springframework.http.MockHttpInput...
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-web/src/test/java/org/springframework/http/converter/feed/RssChannelHttpMessageConverterTests.java
@@ -16,8 +16,6 @@ package org.springframework.http.converter.feed; -import static org.junit.Assert.*; - import java.io.IOException; import java.io.InputStream; import java.nio.charset.Charset; @@ -36,6 +34,9 @@ import org.springframework.http.MockHttpInputMessage; import org.springframework.http.MockHttpOutpu...
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-web/src/test/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverterTests.java
@@ -43,6 +43,7 @@ import org.springframework.lang.Nullable; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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-web/src/test/java/org/springframework/http/converter/xml/Jaxb2RootElementHttpMessageConverterTests.java
@@ -42,6 +42,7 @@ import org.springframework.http.MockHttpOutputMessage; import org.springframework.http.converter.HttpMessageNotReadableException; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.xmlunit.diff.ComparisonType.*; import static org.xmlunit.di...
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-web/src/test/java/org/springframework/http/converter/xml/MappingJackson2XmlHttpMessageConverterTests.java
@@ -33,6 +33,7 @@ import org.springframework.http.converter.json.MappingJacksonValue; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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-web/src/test/java/org/springframework/http/converter/xml/SourceHttpMessageConverterTests.java
@@ -48,6 +48,7 @@ import org.springframework.http.converter.HttpMessageNotReadableException; import org.springframework.util.FileCopyUtils; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.xmlunit.matchers.CompareMatcher.*;
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-web/src/test/java/org/springframework/http/server/reactive/AsyncIntegrationTests.java
@@ -33,7 +33,7 @@ import org.springframework.http.ResponseEntity; import org.springframework.web.client.RestTemplate; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * @author Stephane Maldini
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-web/src/test/java/org/springframework/http/server/reactive/CookieIntegrationTests.java
@@ -33,6 +33,7 @@ import org.springframework.web.client.RestTemplate; import static org.hamcrest.CoreMatchers.equalTo; +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-web/src/test/java/org/springframework/web/bind/support/WebRequestDataBinderTests.java
@@ -16,9 +16,6 @@ package org.springframework.web.bind.support; -import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; - import java.beans.PropertyEditorSupport; import java.util.Arrays; import java.util.HashMap; @@ -39,6 +36,10 @@ import org.springframework.web.context.request.ServletWebRe...
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-web/src/test/java/org/springframework/web/client/AbstractMockWebServerTestCase.java
@@ -32,6 +32,7 @@ import org.springframework.http.MediaType; +import static org.hamcrest.MatcherAssert.assertThat; 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-web/src/test/java/org/springframework/web/client/HttpStatusCodeExceptionTests.java
@@ -28,6 +28,7 @@ import org.springframework.http.HttpStatus; import static org.hamcrest.CoreMatchers.equalTo; +import static org.hamcrest.MatcherAssert.assertThat; 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-web/src/test/java/org/springframework/web/client/RestTemplateIntegrationTests.java
@@ -29,8 +29,6 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonView; -import org.hamcrest.Matchers; -import org.junit.Assume; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; ...
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-web/src/test/java/org/springframework/web/context/request/async/StandardServletAsyncWebRequestTests.java
@@ -16,7 +16,6 @@ package org.springframework.web.context.request.async; - import java.util.function.Consumer; import javax.servlet.AsyncEvent; @@ -28,12 +27,12 @@ import org.springframework.mock.web.test.MockHttpServletRequest; import org.springframework.mock.web.test.MockHttpServletResponse; +import stat...
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-web/src/test/java/org/springframework/web/context/support/AnnotationConfigWebApplicationContextTests.java
@@ -25,6 +25,7 @@ import org.springframework.context.annotation.Configuration; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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-web/src/test/java/org/springframework/web/context/support/StandardServletEnvironmentTests.java
@@ -25,7 +25,7 @@ import org.springframework.tests.mock.jndi.SimpleNamingContextBuilder; import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.MatcherAssert.assertThat; /** * Unit tests for {@link StandardServletEnvironment}.
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-web/src/test/java/org/springframework/web/cors/DefaultCorsProcessorTests.java
@@ -26,6 +26,7 @@ import org.springframework.mock.web.test.MockHttpServletRequest; import org.springframework.mock.web.test.MockHttpServletResponse; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.contains; 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-web/src/test/java/org/springframework/web/cors/reactive/DefaultCorsProcessorTests.java
@@ -28,11 +28,11 @@ import org.springframework.web.cors.CorsConfiguration; import org.springframework.web.server.ServerWebExchange; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.contains; import static org.junit.Assert.assertEquals; import static org.junit.Assert.asser...
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-web/src/test/java/org/springframework/web/filter/ForwardedHeaderFilterTests.java
@@ -17,7 +17,6 @@ package org.springframework.web.filter; import java.io.IOException; -import java.net.URI; import java.util.Enumeration; import javax.servlet.DispatcherType; import javax.servlet.Filter;
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-web/src/test/java/org/springframework/web/filter/reactive/HiddenHttpMethodFilterTests.java
@@ -31,8 +31,8 @@ import org.springframework.web.server.ServerWebExchange; import org.springframework.web.server.WebFilterChain; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThat; /** * Tests for {@link HiddenHttpMetho...
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-web/src/test/java/org/springframework/web/method/support/InvocableHandlerMethodTests.java
@@ -29,6 +29,7 @@ import org.springframework.web.context.request.ServletWebRequest; import org.springframework.web.method.ResolvableMethod; +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-web/src/test/java/org/springframework/web/multipart/support/StandardMultipartHttpServletRequestTests.java
@@ -30,6 +30,7 @@ import org.springframework.web.multipart.MultipartFile; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java
@@ -33,6 +33,7 @@ import org.springframework.util.MultiValueMap; import org.springframework.util.StringUtils; +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-web/src/test/java/org/springframework/web/util/UriComponentsTests.java
@@ -27,6 +27,7 @@ import org.junit.Test; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.springframework.web.util.UriComponentsBuilder.*;
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-web/src/test/java/org/springframework/web/util/pattern/PathPatternTests.java
@@ -34,11 +34,11 @@ import org.springframework.web.util.pattern.PathPattern.PathRemainingMatchInfo; import static org.hamcrest.CoreMatchers.containsString; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static ...
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/context/ContextLoaderTests.java
@@ -46,6 +46,7 @@ import org.springframework.web.servlet.SimpleWebApplicationContext; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; 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/DispatcherServletTests.java
@@ -59,6 +59,7 @@ import org.springframework.web.util.WebUtils; 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
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/config/AnnotationDrivenBeanDefinitionParserTests.java
@@ -50,6 +50,7 @@ import org.springframework.web.servlet.mvc.method.annotation.ServletWebArgumentResolverAdapter; import org.springframework.web.util.UrlPathHelper; +import static org.hamcrest.MatcherAssert.assertThat; 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/config/MvcNamespaceTests.java
@@ -141,6 +141,7 @@ import org.springframework.web.servlet.view.tiles3.TilesViewResolver; import org.springframework.web.util.UrlPathHelper; +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/config/annotation/ResourceHandlerRegistryTests.java
@@ -49,11 +49,11 @@ import org.springframework.web.servlet.resource.WebJarsResourceResolver; import org.springframework.web.util.UrlPathHelper; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.As...
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/handler/HandlerMappingTests.java
@@ -23,7 +23,6 @@ import javax.servlet.http.HttpServletResponse; import org.hamcrest.Matchers; -import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; @@ -36,6 +35,8 @@ import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servle...
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/mvc/WebContentInterceptorTests.java
@@ -24,8 +24,8 @@ import org.springframework.mock.web.test.MockHttpServletRequest; import org.springframework.mock.web.test.MockHttpServletResponse; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; -import static org.junit.Assert.*; /** * @author Rick Evans
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/mvc/method/RequestMappingInfoHandlerMappingTests.java
@@ -59,6 +59,7 @@ import org.springframework.web.servlet.mvc.condition.RequestMethodsRequestCondition; import org.springframework.web.util.UrlPathHelper; +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/mvc/method/annotation/HttpEntityMethodProcessorMockTests.java
@@ -60,6 +60,7 @@ import static java.time.Instant.*; import static java.time.format.DateTimeFormatter.*; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.BDDMockito.*; import static org.springframework.http.MediaType.*;
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/mvc/method/annotation/MvcUriComponentsBuilderTests.java
@@ -62,6 +62,7 @@ import org.springframework.web.util.UriComponents; import org.springframework.web.util.UriComponentsBuilder; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import static org.springframework.web.servlet.mvc.method.an...
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/mvc/method/annotation/RequestMappingHandlerAdapterIntegrationTests.java
@@ -85,6 +85,7 @@ import org.springframework.web.servlet.ModelAndView; import org.springframework.web.util.UriComponentsBuilder; +import static org.hamcrest.MatcherAssert.assertThat; 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/resource/AppCacheManifestTransformerTests.java
@@ -29,6 +29,7 @@ import org.springframework.mock.web.test.MockHttpServletRequest; import org.springframework.util.FileCopyUtils; +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/resource/ResourceUrlProviderTests.java
@@ -34,6 +34,7 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationContext; import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.*; import static org.mockito.ArgumentMatchers.any; i...
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/resource/VersionResourceResolverTests.java
@@ -30,6 +30,7 @@ import org.springframework.core.io.Resource; import org.springframework.mock.web.test.MockHttpServletRequest; +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
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/tags/UrlTagTests.java
@@ -30,6 +30,7 @@ import org.springframework.mock.web.test.MockHttpServletRequest; import org.springframework.mock.web.test.MockPageContext; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*;
true