Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a59b01

Browse files
committed
Polish Javadoc for abstract JUnit 4 and TestNG base classes
1 parent f16e298 commit 3a59b01

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

spring-test/src/main/java/org/springframework/test/context/junit4/AbstractJUnit4SpringContextTests.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -35,13 +35,13 @@
3535
/**
3636
* Abstract base test class which integrates the <em>Spring TestContext
3737
* Framework</em> with explicit {@link ApplicationContext} testing support
38-
* in a <strong>JUnit</strong> environment.
38+
* in a <strong>JUnit 4</strong> environment.
3939
*
4040
* <p>Concrete subclasses should typically declare a class-level
4141
* {@link ContextConfiguration @ContextConfiguration} annotation to
42-
* configure the {@linkplain ApplicationContext application context} {@link
43-
* ContextConfiguration#locations() resource locations} or {@link
44-
* ContextConfiguration#classes() annotated classes}. <em>If your test does not
42+
* configure the {@linkplain ApplicationContext application context} {@linkplain
43+
* ContextConfiguration#locations() resource locations} or {@linkplain
44+
* ContextConfiguration#classes() component classes}. <em>If your test does not
4545
* need to load an application context, you may choose to omit the
4646
* {@link ContextConfiguration @ContextConfiguration} declaration and to configure
4747
* the appropriate {@link org.springframework.test.context.TestExecutionListener
@@ -64,13 +64,13 @@
6464
* {@link SpringRunner}, {@link ContextConfiguration @ContextConfiguration},
6565
* {@link TestExecutionListeners @TestExecutionListeners}, etc.</li>
6666
* <li>If you wish to extend this class and use a runner other than the
67-
* {@link SpringRunner}, as of Spring Framework 4.2 you can use
67+
* {@link SpringRunner}, you can use
6868
* {@link org.springframework.test.context.junit4.rules.SpringClassRule SpringClassRule} and
6969
* {@link org.springframework.test.context.junit4.rules.SpringMethodRule SpringMethodRule}
7070
* and specify your runner of choice via {@link RunWith @RunWith(...)}.</li>
7171
* </ul>
7272
*
73-
* <p><strong>NOTE:</strong> As of Spring Framework 4.3, this class requires JUnit 4.12 or higher.
73+
* <p><strong>NOTE:</strong> This class requires JUnit 4.12 or higher.
7474
*
7575
* @author Sam Brannen
7676
* @since 2.5

spring-test/src/main/java/org/springframework/test/context/junit4/AbstractTransactionalJUnit4SpringContextTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -56,6 +56,7 @@
5656
*
5757
* <ul>
5858
* <li>{@link org.springframework.test.context.web.ServletTestExecutionListener}
59+
* <li>{@link org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener}
5960
* <li>{@link org.springframework.test.context.support.DependencyInjectionTestExecutionListener}
6061
* <li>{@link org.springframework.test.context.support.DirtiesContextTestExecutionListener}
6162
* <li>{@link org.springframework.test.context.transaction.TransactionalTestExecutionListener}
@@ -75,7 +76,7 @@
7576
* and specify your runner of choice via {@link org.junit.runner.RunWith @RunWith(...)}.</li>
7677
* </ul>
7778
*
78-
* <p><strong>NOTE:</strong> As of Spring Framework 4.3, this class requires JUnit 4.12 or higher.
79+
* <p><strong>NOTE:</strong> This class requires JUnit 4.12 or higher.
7980
*
8081
* @author Sam Brannen
8182
* @author Juergen Hoeller

spring-test/src/main/java/org/springframework/test/context/testng/AbstractTestNGSpringContextTests.java

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -46,19 +46,16 @@
4646
* with explicit {@link ApplicationContext} testing support in a <strong>TestNG</strong>
4747
* environment.
4848
*
49-
* <p>Concrete subclasses:
50-
* <ul>
51-
* <li>Typically declare a class-level {@link ContextConfiguration
52-
* &#064;ContextConfiguration} annotation to configure the {@linkplain ApplicationContext
53-
* application context} {@linkplain ContextConfiguration#locations() resource locations}
54-
* or {@linkplain ContextConfiguration#classes() annotated classes}. <em>If your test
55-
* does not need to load an application context, you may choose to omit the
56-
* {@code @ContextConfiguration} declaration and to configure the appropriate
57-
* {@link org.springframework.test.context.TestExecutionListener TestExecutionListeners}
58-
* manually.</em></li>
59-
* <li>Must have constructors which either implicitly or explicitly delegate to
60-
* {@code super();}.</li>
61-
* </ul>
49+
* <p>Concrete subclasses should typically declare a class-level
50+
* {@link ContextConfiguration @ContextConfiguration} annotation to
51+
* configure the {@linkplain ApplicationContext application context} {@linkplain
52+
* ContextConfiguration#locations() resource locations} or {@linkplain
53+
* ContextConfiguration#classes() component classes}. <em>If your test does not
54+
* need to load an application context, you may choose to omit the
55+
* {@link ContextConfiguration @ContextConfiguration} declaration and to configure
56+
* the appropriate {@link org.springframework.test.context.TestExecutionListener
57+
* TestExecutionListeners} manually.</em> Concrete subclasses must also have
58+
* constructors which either implicitly or explicitly delegate to {@code super();}.
6259
*
6360
* <p>The following {@link org.springframework.test.context.TestExecutionListener
6461
* TestExecutionListeners} are configured by default:
@@ -105,7 +102,7 @@ public abstract class AbstractTestNGSpringContextTests implements IHookable, App
105102

106103

107104
/**
108-
* Construct a new AbstractTestNGSpringContextTests instance and initialize
105+
* Construct a new {@code AbstractTestNGSpringContextTests} instance and initialize
109106
* the internal {@link TestContextManager} for the current test class.
110107
*/
111108
public AbstractTestNGSpringContextTests() {

spring-test/src/main/java/org/springframework/test/context/testng/AbstractTransactionalTestNGSpringContextTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -55,6 +55,7 @@
5555
*
5656
* <ul>
5757
* <li>{@link org.springframework.test.context.web.ServletTestExecutionListener}
58+
* <li>{@link org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener}
5859
* <li>{@link org.springframework.test.context.support.DependencyInjectionTestExecutionListener}
5960
* <li>{@link org.springframework.test.context.support.DirtiesContextTestExecutionListener}
6061
* <li>{@link org.springframework.test.context.transaction.TransactionalTestExecutionListener}

0 commit comments

Comments
 (0)