From cb59d43a5fea8e541f30bb40b39e2c01ec8fcbc7 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 6 Mar 2014 14:40:41 +0100 Subject: [PATCH] Fix typos in Javadoc in AssertThrows --- .../java/org/springframework/test/AssertThrows.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/AssertThrows.java b/spring-test/src/main/java/org/springframework/test/AssertThrows.java index 2958fe0254..b5ecf44a93 100644 --- a/spring-test/src/main/java/org/springframework/test/AssertThrows.java +++ b/spring-test/src/main/java/org/springframework/test/AssertThrows.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -57,7 +57,7 @@ package org.springframework.test; * test will also fail, this time with a message similar to the following: * *
- * "junit.framework.AssertionFailedError: Was expecting a [class java.lang.UnsupportedOperationException] to be thrown, but instead a [class java.lang.IllegalArgumentException] was thrown"
+ * "java.lang.AssertionError: Was expecting a [class java.lang.UnsupportedOperationException] to be thrown, but instead a [class java.lang.IllegalArgumentException] was thrown" * * The test for the correct {@link Exception} respects polymorphism, * so you can test that any old {@link Exception} is thrown like so: @@ -156,7 +156,7 @@ public abstract class AssertThrows { * Subclass must override this {@code abstract} method and * provide the test logic. * @throws Exception if an error occurs during the execution of the - * aformentioned test logic + * aforementioned test logic */ public abstract void test() throws Exception; @@ -186,7 +186,7 @@ public abstract class AssertThrows { * {@link java.lang.Exception} is not thrown. *

The default implementation simply fails the test via a call to * {@link org.junit.Assert#fail(String)}. - *

If you want to customise the failure message, consider overriding + *

If you want to customize the failure message, consider overriding * {@link #createMessageForNoExceptionThrown()}, and / or supplying an * extra, contextual failure message via the appropriate constructor overload. * @see #getFailureMessage() @@ -215,7 +215,7 @@ public abstract class AssertThrows { * {@link Exception} that was thrown in the body of a test is * an instance of the {@link #getExpectedException()} class (or an * instance of a subclass). - *

If you want to customise the failure message, consider overriding + *

If you want to customize the failure message, consider overriding * {@link #createMessageForWrongThrownExceptionType(Exception)}. * @param actualException the {@link Exception} that has been thrown * in the body of a test method (will never be {@code null})