SPR-6246: Java6 @Override removed
This commit is contained in:
parent
b580696550
commit
0e85c66f2f
|
|
@ -106,11 +106,9 @@ public class VelocityRenderTests {
|
||||||
thrown.expect(NestedServletException.class);
|
thrown.expect(NestedServletException.class);
|
||||||
|
|
||||||
thrown.expect(new TypeSafeMatcher<Exception>() {
|
thrown.expect(new TypeSafeMatcher<Exception>() {
|
||||||
@Override
|
|
||||||
public boolean matchesSafely(Exception item) {
|
public boolean matchesSafely(Exception item) {
|
||||||
return item.getCause() instanceof MethodInvocationException;
|
return item.getCause() instanceof MethodInvocationException;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public void describeTo(Description description) {
|
public void describeTo(Description description) {
|
||||||
description.appendText("exception has cause of MethodInvocationException");
|
description.appendText("exception has cause of MethodInvocationException");
|
||||||
|
|
||||||
|
|
@ -140,11 +138,9 @@ public class VelocityRenderTests {
|
||||||
thrown.expect(NestedServletException.class);
|
thrown.expect(NestedServletException.class);
|
||||||
|
|
||||||
thrown.expect(new TypeSafeMatcher<Exception>() {
|
thrown.expect(new TypeSafeMatcher<Exception>() {
|
||||||
@Override
|
|
||||||
public boolean matchesSafely(Exception item) {
|
public boolean matchesSafely(Exception item) {
|
||||||
return item.getCause() instanceof IOException;
|
return item.getCause() instanceof IOException;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public void describeTo(Description description) {
|
public void describeTo(Description description) {
|
||||||
description.appendText("exception has cause of IOException");
|
description.appendText("exception has cause of IOException");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue