Add @Override annotations to test sources
Issue: SPR-10129
This commit is contained in:
@@ -206,6 +206,7 @@ public class Jaxb2MarshallerTests extends AbstractMarshallerTests {
|
||||
private void testSupportsPrimitives() {
|
||||
final Primitives primitives = new Primitives();
|
||||
ReflectionUtils.doWithMethods(Primitives.class, new ReflectionUtils.MethodCallback() {
|
||||
@Override
|
||||
public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException {
|
||||
Type returnType = method.getGenericReturnType();
|
||||
assertTrue("Jaxb2Marshaller does not support JAXBElement<" + method.getName().substring(9) + ">",
|
||||
@@ -220,6 +221,7 @@ public class Jaxb2MarshallerTests extends AbstractMarshallerTests {
|
||||
}
|
||||
}
|
||||
}, new ReflectionUtils.MethodFilter() {
|
||||
@Override
|
||||
public boolean matches(Method method) {
|
||||
return method.getName().startsWith("primitive");
|
||||
}
|
||||
@@ -229,6 +231,7 @@ public class Jaxb2MarshallerTests extends AbstractMarshallerTests {
|
||||
private void testSupportsStandardClasses() throws Exception {
|
||||
final StandardClasses standardClasses = new StandardClasses();
|
||||
ReflectionUtils.doWithMethods(StandardClasses.class, new ReflectionUtils.MethodCallback() {
|
||||
@Override
|
||||
public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException {
|
||||
Type returnType = method.getGenericReturnType();
|
||||
assertTrue("Jaxb2Marshaller does not support JAXBElement<" + method.getName().substring(13) + ">",
|
||||
@@ -243,6 +246,7 @@ public class Jaxb2MarshallerTests extends AbstractMarshallerTests {
|
||||
}
|
||||
}
|
||||
}, new ReflectionUtils.MethodFilter() {
|
||||
@Override
|
||||
public boolean matches(Method method) {
|
||||
return method.getName().startsWith("standardClass");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user