Replace <code> with {@code} throughout Javadoc

Issue: SPR-10128
This commit is contained in:
Chris Beams
2012-12-18 14:45:36 +01:00
parent 8597ec25ec
commit 9540d2c81b
1503 changed files with 8001 additions and 8060 deletions

View File

@@ -21,7 +21,7 @@ import junit.framework.TestCase;
import javax.servlet.jsp.PageContext;
/**
* Unit tests for the <code>MockPageContext</code> class.
* Unit tests for the {@code MockPageContext} class.
*
* @author Rick Evans
*/

View File

@@ -29,7 +29,7 @@ import org.springframework.test.context.junit4.PropertiesBasedSpringJUnit4ClassR
/**
* Integration tests which verify that the same custom {@link ContextLoader} can
* be used at all levels within a test class hierarchy when the
* <code>loader</code> is <i>inherited</i> (i.e., not explicitly declared) via
* {@code loader} is <i>inherited</i> (i.e., not explicitly declared) via
* {@link ContextConfiguration &#064;ContextConfiguration}.
*
* @author Sam Brannen

View File

@@ -30,7 +30,7 @@ import org.springframework.test.context.support.GenericPropertiesContextLoader;
/**
* Integration tests which verify that the same custom {@link ContextLoader} can
* be used at all levels within a test class hierarchy when the
* <code>loader</code> is explicitly declared via {@link ContextConfiguration
* {@code loader} is explicitly declared via {@link ContextConfiguration
* &#064;ContextConfiguration}.
*
* @author Sam Brannen

View File

@@ -52,7 +52,7 @@ import org.springframework.transaction.annotation.Transactional;
* <li>{@link TransactionalTestExecutionListener}</li>
* </ul>
* <p>
* This class specifically tests usage of <code>&#064;Transactional</code>
* This class specifically tests usage of {@code &#064;Transactional}
* defined at the <strong>class level</strong>.
* </p>
*

View File

@@ -40,7 +40,7 @@ public class ClassPathResourceSpringJUnit4ClassRunnerAppCtxTests extends SpringJ
/**
* Classpath-based resource path for the application context configuration
* for {@link SpringJUnit4ClassRunnerAppCtxTests}:
* <code>&quot;classpath:/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml&quot;</code>
* {@code &quot;classpath:/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml&quot;}
*
* @see SpringJUnit4ClassRunnerAppCtxTests#DEFAULT_CONTEXT_RESOURCE_PATH
* @see ResourceUtils#CLASSPATH_URL_PREFIX

View File

@@ -35,7 +35,7 @@ import org.springframework.transaction.annotation.Transactional;
* <p>
* JUnit 4 based integration test which verifies proper transactional behavior when the
* {@link TransactionConfiguration#defaultRollback() defaultRollback} attribute
* of the {@link TransactionConfiguration} annotation is set to <strong><code>false</code></strong>.
* of the {@link TransactionConfiguration} annotation is set to <strong>{@code false}</strong>.
* Also tests configuration of the
* {@link TransactionConfiguration#transactionManager() transaction manager name}.
* </p>

View File

@@ -34,7 +34,7 @@ import org.springframework.transaction.annotation.Transactional;
/**
* JUnit 4 based integration test which verifies proper transactional behavior when the
* {@link TransactionConfiguration#defaultRollback() defaultRollback} attribute
* of the {@link TransactionConfiguration} annotation is set to <strong><code>true</code></strong>.
* of the {@link TransactionConfiguration} annotation is set to <strong>{@code true}</strong>.
*
* @author Sam Brannen
* @since 2.5

View File

@@ -50,10 +50,10 @@ import org.springframework.transaction.annotation.Transactional;
* <li>{@link TransactionalTestExecutionListener}</li>
* </ul>
* <p>
* This class specifically tests usage of <code>&#064;Transactional</code>
* This class specifically tests usage of {@code &#064;Transactional}
* defined at the <strong>method level</strong>. In contrast to
* {@link ClassLevelTransactionalSpringRunnerTests}, this class omits usage of
* <code>&#064;NotTransactional</code>.
* {@code &#064;NotTransactional}.
* </p>
*
* @author Sam Brannen

View File

@@ -26,9 +26,9 @@ import org.springframework.util.ResourceUtils;
* configured differently.
* <p>
* As of Spring 3.0,
* <code>MultipleResourcesSpringJUnit4ClassRunnerAppCtxTests</code> is also used
* to verify support for the new <code>value</code> attribute alias for
* <code>&#064;ContextConfiguration</code>'s <code>locations</code> attribute.
* {@code MultipleResourcesSpringJUnit4ClassRunnerAppCtxTests} is also used
* to verify support for the new {@code value} attribute alias for
* {@code &#064;ContextConfiguration}'s {@code locations} attribute.
* </p>
*
* @author Sam Brannen

View File

@@ -44,10 +44,10 @@ import org.springframework.test.context.support.GenericPropertiesContextLoader;
* defined, the {@link ContextConfiguration#resourceSuffix() resourceSuffix} is
* set to &quot;-context.properties&quot;, and
* {@link ContextConfiguration#generateDefaultLocations() generateDefaultLocations}
* is left set to its default value of <code>true</code>, this test class's
* is left set to its default value of {@code true}, this test class's
* dependencies will be injected via
* {@link Autowired annotation-based autowiring} from beans defined in the
* {@link ApplicationContext} loaded from the default classpath resource: &quot;<code>/org/springframework/test/junit4/PropertiesBasedSpringJUnit4ClassRunnerAppCtxTests-context.properties</code>&quot;.
* {@link ApplicationContext} loaded from the default classpath resource: &quot;{@code /org/springframework/test/junit4/PropertiesBasedSpringJUnit4ClassRunnerAppCtxTests-context.properties}&quot;.
* </p>
*
* @author Sam Brannen

View File

@@ -70,7 +70,7 @@ import org.springframework.test.context.support.GenericXmlContextLoader;
* {@link Inject @Inject}, and {@link Resource @Resource} from beans defined in
* the {@link ApplicationContext} loaded from the default classpath resource:
*
* <code>&quot;/org/springframework/test/context/junit/SpringJUnit4ClassRunnerAppCtxTests-context.xml&quot;</code>
* {@code &quot;/org/springframework/test/context/junit/SpringJUnit4ClassRunnerAppCtxTests-context.xml&quot;}
* .
* </p>
*
@@ -89,7 +89,7 @@ public class SpringJUnit4ClassRunnerAppCtxTests implements ApplicationContextAwa
* Default resource path for the application context configuration for
* {@link SpringJUnit4ClassRunnerAppCtxTests}:
*
* <code>&quot;/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml&quot;</code>
* {@code &quot;/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml&quot;}
*/
public static final String DEFAULT_CONTEXT_RESOURCE_PATH = "/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml";

View File

@@ -26,7 +26,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunnerAppCtxTest
* <p>Furthermore, by extending {@link SpringJUnit4ClassRunnerAppCtxTests},
* this class also verifies support for several basic features of the
* Spring TestContext Framework. See JavaDoc in
* <code>SpringJUnit4ClassRunnerAppCtxTests</code> for details.
* {@code SpringJUnit4ClassRunnerAppCtxTests} for details.
*
* <p>Configuration will be loaded from {@link PojoAndStringConfig}.
*

View File

@@ -25,7 +25,7 @@ import org.springframework.context.annotation.Configuration;
* ApplicationContext configuration class for various integration tests.
*
* <p>The beans defined in this configuration class map directly to the
* beans defined in <code>SpringJUnit4ClassRunnerAppCtxTests-context.xml</code>.
* beans defined in {@code SpringJUnit4ClassRunnerAppCtxTests-context.xml}.
* Consequently, the application contexts loaded from these two sources
* should be identical with regard to bean definitions.
*

View File

@@ -26,7 +26,7 @@ import org.springframework.context.support.GenericApplicationContext;
/**
* Unit test which verifies that extensions of
* {@link AbstractGenericContextLoader} are able to <em>customize</em> the
* newly created <code>ApplicationContext</code>. Specifically, this test
* newly created {@code ApplicationContext}. Specifically, this test
* addresses the issues raised in <a
* href="http://opensource.atlassian.com/projects/spring/browse/SPR-4008"
* target="_blank">SPR-4008</a>: <em>Supply an opportunity to customize context

View File

@@ -34,8 +34,8 @@ import org.springframework.util.ObjectUtils;
/**
* JUnit 4 based unit test which verifies proper
* {@link ContextLoader#processLocations(Class,String...) processing} of
* <code>resource locations</code> by a {@link GenericXmlContextLoader}
* {@link ContextLoader#processLocations(Class, String...) processing} of
* {@code resource locations} by a {@link GenericXmlContextLoader}
* configured via {@link ContextConfiguration @ContextConfiguration}.
* Specifically, this test addresses the issues raised in <a
* href="http://opensource.atlassian.com/projects/spring/browse/SPR-3949"

View File

@@ -22,7 +22,7 @@ import org.springframework.transaction.support.TransactionSynchronizationManager
* Collection of JDK 1.4+ utilities for tests involving transactions. Intended
* for internal use within the Spring testing suite.
*
* <p>All <code>assert*()</code> methods throw {@link AssertionError}s.
* <p>All {@code assert*()} methods throw {@link AssertionError}s.
*
* @author Sam Brannen
* @since 2.5
@@ -32,7 +32,7 @@ public abstract class TransactionTestUtils {
/**
* Convenience method for determining if a transaction is active for the
* current {@link Thread}.
* @return <code>true</code> if a transaction is currently active
* @return {@code true} if a transaction is currently active
*/
public static boolean inTransaction() {
return TransactionSynchronizationManager.isActualTransactionActive();
@@ -55,22 +55,22 @@ public abstract class TransactionTestUtils {
}
/**
* Fails by throwing an <code>AssertionError</code> with the supplied
* <code>message</code>.
* Fails by throwing an {@code AssertionError} with the supplied
* {@code message}.
* @param message the exception message to use
* @see #assertCondition(boolean,String)
* @see #assertCondition(boolean, String)
*/
private static void fail(String message) throws AssertionError {
throw new AssertionError(message);
}
/**
* Assert the provided boolean <code>condition</code>, throwing
* <code>AssertionError</code> with the supplied <code>message</code> if
* the test result is <code>false</code>.
* Assert the provided boolean {@code condition}, throwing
* {@code AssertionError} with the supplied {@code message} if
* the test result is {@code false}.
* @param condition a boolean expression
* @param message the exception message to use if the assertion fails
* @throws AssertionError if condition is <code>false</code>
* @throws AssertionError if condition is {@code false}
* @see #fail(String)
*/
private static void assertCondition(boolean condition, String message) throws AssertionError {