mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 12:19:16 +00:00
SPR-6246: Java6 @Override removed
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2216 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
-4
@@ -106,11 +106,9 @@ public class VelocityRenderTests {
|
||||
thrown.expect(NestedServletException.class);
|
||||
|
||||
thrown.expect(new TypeSafeMatcher<Exception>() {
|
||||
@Override
|
||||
public boolean matchesSafely(Exception item) {
|
||||
return item.getCause() instanceof MethodInvocationException;
|
||||
}
|
||||
@Override
|
||||
public void describeTo(Description description) {
|
||||
description.appendText("exception has cause of MethodInvocationException");
|
||||
|
||||
@@ -140,11 +138,9 @@ public class VelocityRenderTests {
|
||||
thrown.expect(NestedServletException.class);
|
||||
|
||||
thrown.expect(new TypeSafeMatcher<Exception>() {
|
||||
@Override
|
||||
public boolean matchesSafely(Exception item) {
|
||||
return item.getCause() instanceof IOException;
|
||||
}
|
||||
@Override
|
||||
public void describeTo(Description description) {
|
||||
description.appendText("exception has cause of IOException");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user