Add link to assertThrows in JUnit 4.
Also, fix/update JUnit 5 link, as Javadoc has changed URL schemes.
Followup to http://[]
RELNOTES=n/a
@@ -57,11 +57,13 @@ import org.junit.runners.model.Statement;
* assertThat(failure).factKeys().containsExactly("expected to be visible");
* }</pre>
*
- * <p>{@code ExpectFailure} is similar to JUnit 5's <a
- * href="http://junit.org/junit5/docs/current/api/org/junit/jupiter/api/Assertions.html#assertThrows-java.lang.Class-org.junit.jupiter.api.function.Executable-">{@code
- * assertThrows}</a>. We recommend it over {@code assertThrows} when you're testing a Truth subject
- * because it also checks that the assertion you're testing uses the supplied {@link
- * FailureStrategy} and calls {@link FailureStrategy#fail} only once.
+ * <p>{@code ExpectFailure} is similar to JUnit's {@code assertThrows} (<a
+ * href="https://junit.org/junit4/javadoc/latest/org/junit/Assert.html#assertThrows%28java.lang.Class,%20org.junit.function.ThrowingRunnable%29">JUnit
+ * 4</a>, <a
+ * href="https://junit.org/junit5/docs/current/api/org/junit/jupiter/api/Assertions.html#assertThrows%28java.lang.Class,org.junit.jupiter.api.function.Executable%29">JUnit
+ * 5</a>). We recommend it over {@code assertThrows} when you're testing a Truth subject because it
+ * also checks that the assertion you're testing uses the supplied {@link FailureStrategy} and calls
+ * {@link FailureStrategy#fail} only once.
*/
public final class ExpectFailure implements Platform.JUnitTestRule {
private final FailureStrategy strategy =
