Skip to content

Commit 6028a64

Browse files
committed
Polish Javadoc for TestContext
1 parent 9172a6d commit 6028a64

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

spring-test/src/main/java/org/springframework/test/context/TestContext.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,9 +33,8 @@
3333
public interface TestContext extends AttributeAccessor, Serializable {
3434

3535
/**
36-
* Get the {@link ApplicationContext application context} for this test
37-
* context, possibly cached.
38-
*
36+
* Get the {@linkplain ApplicationContext application context} for this
37+
* test context, possibly cached.
3938
* <p>Implementations of this method are responsible for loading the
4039
* application context if the corresponding context has not already been
4140
* loaded, potentially caching the context as well.
@@ -46,30 +45,30 @@ public interface TestContext extends AttributeAccessor, Serializable {
4645
ApplicationContext getApplicationContext();
4746

4847
/**
49-
* Get the {@link Class test class} for this test context.
48+
* Get the {@linkplain Class test class} for this test context.
5049
* @return the test class (never {@code null})
5150
*/
5251
Class<?> getTestClass();
5352

5453
/**
55-
* Get the current {@link Object test instance} for this test context.
54+
* Get the current {@linkplain Object test instance} for this test context.
5655
* <p>Note: this is a mutable property.
5756
* @return the current test instance (may be {@code null})
5857
* @see #updateState(Object, Method, Throwable)
5958
*/
6059
Object getTestInstance();
6160

6261
/**
63-
* Get the current {@link Method test method} for this test context.
62+
* Get the current {@linkplain Method test method} for this test context.
6463
* <p>Note: this is a mutable property.
6564
* @return the current test method (may be {@code null})
6665
* @see #updateState(Object, Method, Throwable)
6766
*/
6867
Method getTestMethod();
6968

7069
/**
71-
* Get the {@link Throwable exception} that was thrown during execution of
72-
* the {@link #getTestMethod() test method}.
70+
* Get the {@linkplain Throwable exception} that was thrown during execution
71+
* of the {@linkplain #getTestMethod() test method}.
7372
* <p>Note: this is a mutable property.
7473
* @return the exception that was thrown, or {@code null} if no
7574
* exception was thrown
@@ -80,8 +79,10 @@ public interface TestContext extends AttributeAccessor, Serializable {
8079
/**
8180
* Call this method to signal that the {@linkplain ApplicationContext application
8281
* context} associated with this test context is <em>dirty</em> and should be
83-
* discarded. Do this if a test has modified the context &mdash; for example,
84-
* by replacing a bean definition or modifying the state of a singleton bean.
82+
* removed from the context cache.
83+
* <p>Do this if a test has modified the context &mdash; for example, by
84+
* modifying the state of a singleton bean, modifying the state of an embedded
85+
* database, etc.
8586
* @param hierarchyMode the context cache clearing mode to be applied if the
8687
* context is part of a hierarchy (may be {@code null})
8788
*/

0 commit comments

Comments
 (0)