Fix [deprecation] compiler warnings

Fix deprecation compiler warnings by refactoring code or applying
@SuppressWarnings("deprecation") annotations. JUnit tests of
internally deprecated classes are now themselves marked as
@Deprecated.

Numerous EasyMock deprecation warnings will remain until the
migration to mockito can be completed.
This commit is contained in:
Phillip Webb
2012-12-31 13:08:39 -08:00
parent 9364043a64
commit 6626a38730
153 changed files with 1665 additions and 1188 deletions

View File

@@ -185,7 +185,7 @@ public abstract class AssertThrows {
* Template method called when the test fails; i.e. the expected
* {@link java.lang.Exception} is <b>not</b> thrown.
* <p>The default implementation simply fails the test via a call to
* {@link junit.framework.Assert#fail(String)}.
* {@link org.junit.Assert#fail(String)}.
* <p>If you want to customise the failure message, consider overriding
* {@link #createMessageForNoExceptionThrown()}, and / or supplying an
* extra, contextual failure message via the appropriate constructor overload.