Replace <code> with {@code} throughout Javadoc
Issue: SPR-10128
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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 @ContextConfiguration}.
|
||||
*
|
||||
* @author Sam Brannen
|
||||
|
||||
@@ -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
|
||||
* @ContextConfiguration}.
|
||||
*
|
||||
* @author Sam Brannen
|
||||
|
||||
@@ -52,7 +52,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
* <li>{@link TransactionalTestExecutionListener}</li>
|
||||
* </ul>
|
||||
* <p>
|
||||
* This class specifically tests usage of <code>@Transactional</code>
|
||||
* This class specifically tests usage of {@code @Transactional}
|
||||
* defined at the <strong>class level</strong>.
|
||||
* </p>
|
||||
*
|
||||
|
||||
@@ -40,7 +40,7 @@ public class ClassPathResourceSpringJUnit4ClassRunnerAppCtxTests extends SpringJ
|
||||
/**
|
||||
* Classpath-based resource path for the application context configuration
|
||||
* for {@link SpringJUnit4ClassRunnerAppCtxTests}:
|
||||
* <code>"classpath:/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml"</code>
|
||||
* {@code "classpath:/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml"}
|
||||
*
|
||||
* @see SpringJUnit4ClassRunnerAppCtxTests#DEFAULT_CONTEXT_RESOURCE_PATH
|
||||
* @see ResourceUtils#CLASSPATH_URL_PREFIX
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -50,10 +50,10 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
* <li>{@link TransactionalTestExecutionListener}</li>
|
||||
* </ul>
|
||||
* <p>
|
||||
* This class specifically tests usage of <code>@Transactional</code>
|
||||
* This class specifically tests usage of {@code @Transactional}
|
||||
* defined at the <strong>method level</strong>. In contrast to
|
||||
* {@link ClassLevelTransactionalSpringRunnerTests}, this class omits usage of
|
||||
* <code>@NotTransactional</code>.
|
||||
* {@code @NotTransactional}.
|
||||
* </p>
|
||||
*
|
||||
* @author Sam Brannen
|
||||
|
||||
@@ -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>@ContextConfiguration</code>'s <code>locations</code> attribute.
|
||||
* {@code MultipleResourcesSpringJUnit4ClassRunnerAppCtxTests} is also used
|
||||
* to verify support for the new {@code value} attribute alias for
|
||||
* {@code @ContextConfiguration}'s {@code locations} attribute.
|
||||
* </p>
|
||||
*
|
||||
* @author Sam Brannen
|
||||
|
||||
@@ -44,10 +44,10 @@ import org.springframework.test.context.support.GenericPropertiesContextLoader;
|
||||
* defined, the {@link ContextConfiguration#resourceSuffix() resourceSuffix} is
|
||||
* set to "-context.properties", 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: "<code>/org/springframework/test/junit4/PropertiesBasedSpringJUnit4ClassRunnerAppCtxTests-context.properties</code>".
|
||||
* {@link ApplicationContext} loaded from the default classpath resource: "{@code /org/springframework/test/junit4/PropertiesBasedSpringJUnit4ClassRunnerAppCtxTests-context.properties}".
|
||||
* </p>
|
||||
*
|
||||
* @author Sam Brannen
|
||||
|
||||
@@ -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>"/org/springframework/test/context/junit/SpringJUnit4ClassRunnerAppCtxTests-context.xml"</code>
|
||||
* {@code "/org/springframework/test/context/junit/SpringJUnit4ClassRunnerAppCtxTests-context.xml"}
|
||||
* .
|
||||
* </p>
|
||||
*
|
||||
@@ -89,7 +89,7 @@ public class SpringJUnit4ClassRunnerAppCtxTests implements ApplicationContextAwa
|
||||
* Default resource path for the application context configuration for
|
||||
* {@link SpringJUnit4ClassRunnerAppCtxTests}:
|
||||
*
|
||||
* <code>"/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml"</code>
|
||||
* {@code "/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml"}
|
||||
*/
|
||||
public static final String DEFAULT_CONTEXT_RESOURCE_PATH = "/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerAppCtxTests-context.xml";
|
||||
|
||||
|
||||
@@ -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}.
|
||||
*
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user