DATACMNS-867 - Further AssertJ migrations.
This commit is contained in:
5
src/test/java/org/springframework/data/projection/ProjectionIntegrationTests.java
Normal file → Executable file
5
src/test/java/org/springframework/data/projection/ProjectionIntegrationTests.java
Normal file → Executable file
@@ -15,8 +15,7 @@
|
||||
*/
|
||||
package org.springframework.data.projection;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -43,7 +42,7 @@ public class ProjectionIntegrationTests {
|
||||
ParseContext context = JsonPath.using(new ConfigurationBuilder().options(Option.SUPPRESS_EXCEPTIONS).build());
|
||||
DocumentContext json = context.parse(new ObjectMapper().writeValueAsString(projection));
|
||||
|
||||
assertThat(json.read("$.decoratedClass", String.class), is(nullValue()));
|
||||
assertThat(json.read("$.decoratedClass", String.class)).isNull();
|
||||
}
|
||||
|
||||
interface SampleProjection {
|
||||
|
||||
11
src/test/java/org/springframework/data/web/ProxyingHandlerMethodArgumentResolverUnitTests.java
Normal file → Executable file
11
src/test/java/org/springframework/data/web/ProxyingHandlerMethodArgumentResolverUnitTests.java
Normal file → Executable file
@@ -15,8 +15,7 @@
|
||||
*/
|
||||
package org.springframework.data.web;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.List;
|
||||
@@ -44,7 +43,7 @@ public class ProxyingHandlerMethodArgumentResolverUnitTests {
|
||||
Method method = Controller.class.getMethod("with", AnnotatedInterface.class);
|
||||
MethodParameter parameter = new MethodParameter(method, 0);
|
||||
|
||||
assertThat(resolver.supportsParameter(parameter), is(true));
|
||||
assertThat(resolver.supportsParameter(parameter)).isTrue();
|
||||
}
|
||||
|
||||
@Test // DATACMNS-776
|
||||
@@ -53,7 +52,7 @@ public class ProxyingHandlerMethodArgumentResolverUnitTests {
|
||||
Method method = Controller.class.getMethod("with", SampleInterface.class);
|
||||
MethodParameter parameter = new MethodParameter(method, 0);
|
||||
|
||||
assertThat(resolver.supportsParameter(parameter), is(true));
|
||||
assertThat(resolver.supportsParameter(parameter)).isTrue();
|
||||
}
|
||||
|
||||
@Test // DATACMNS-776
|
||||
@@ -62,7 +61,7 @@ public class ProxyingHandlerMethodArgumentResolverUnitTests {
|
||||
Method method = Controller.class.getMethod("with", UnannotatedInterface.class);
|
||||
MethodParameter parameter = new MethodParameter(method, 0);
|
||||
|
||||
assertThat(resolver.supportsParameter(parameter), is(false));
|
||||
assertThat(resolver.supportsParameter(parameter)).isFalse();
|
||||
}
|
||||
|
||||
@Test // DATACMNS-776
|
||||
@@ -71,7 +70,7 @@ public class ProxyingHandlerMethodArgumentResolverUnitTests {
|
||||
Method method = Controller.class.getMethod("with", List.class);
|
||||
MethodParameter parameter = new MethodParameter(method, 0);
|
||||
|
||||
assertThat(resolver.supportsParameter(parameter), is(false));
|
||||
assertThat(resolver.supportsParameter(parameter)).isFalse();
|
||||
}
|
||||
|
||||
@ProjectedPayload
|
||||
|
||||
Reference in New Issue
Block a user