DATACMNS-867 - Further AssertJ migrations.

This commit is contained in:
Oliver Gierke
2017-03-15 16:35:03 +01:00
parent 082c4157d1
commit 9b4188bfe8
2 changed files with 7 additions and 9 deletions

View 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