Skip to content

Commit 2eca1cc

Browse files
committed
Improve wording
1 parent 9e7a6d5 commit 2eca1cc

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

junit-jupiter-api/src/main/java/org/junit/jupiter/api/ClassTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
*
5454
* <h2>Inheritance</h2>
5555
*
56-
* <p>This annotation is inherited to subclasses.
56+
* <p>This annotation is inherited by subclasses.
5757
*
5858
* @since 5.13
5959
* @see TestTemplate

junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterizedClass.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* <p>A {@code @ParameterizedClass} must specify at least one
3434
* {@link org.junit.jupiter.params.provider.ArgumentsProvider ArgumentsProvider}
3535
* via {@link org.junit.jupiter.params.provider.ArgumentsSource @ArgumentsSource}
36-
* or a corresponding composed annotation (e.g., {@code @ValueSource},
36+
* or a corresponding composed annotation (such as {@code @ValueSource},
3737
* {@code @CsvSource}, etc.). The provider is responsible for providing a
3838
* {@link java.util.stream.Stream Stream} of
3939
* {@link org.junit.jupiter.params.provider.Arguments Arguments} that will be
@@ -52,7 +52,7 @@
5252
* <p>A {@code @ParameterizedClass} constructor may declare additional
5353
* parameters at the end of its parameter list to be resolved by other
5454
* {@link org.junit.jupiter.api.extension.ParameterResolver ParameterResolvers}
55-
* (e.g., {@code TestInfo}, {@code TestReporter}, etc.). Specifically, such a
55+
* (such as {@code TestInfo}, {@code TestReporter}, etc.). Specifically, such a
5656
* constructor must declare formal parameters according to the following rules.
5757
*
5858
* <ol>
@@ -64,7 +64,7 @@
6464
*
6565
* <p>In this context, an <em>indexed parameter</em> is an argument for a given
6666
* index in the {@code Arguments} provided by an {@code ArgumentsProvider} that
67-
* is passed as an argument to the parameterized class at the same index in
67+
* is supplied as an argument to the parameterized class at the same index in
6868
* the constructor's formal parameter list. An <em>aggregator</em> is any
6969
* parameter of type
7070
* {@link org.junit.jupiter.params.aggregator.ArgumentsAccessor ArgumentsAccessor}
@@ -112,8 +112,7 @@
112112
* <p>If you wish to execute custom code before or after each invocation of the
113113
* parameterized class, you may declare methods annotated with
114114
* {@link BeforeParameterizedClassInvocation @BeforeParameterizedClassInvocation}
115-
* or
116-
* {@link AfterParameterizedClassInvocation @AfterParameterizedClassInvocation}.
115+
* or {@link AfterParameterizedClassInvocation @AfterParameterizedClassInvocation}.
117116
* This can, for example, be useful to initialize the arguments before they are
118117
* used.
119118
*
@@ -125,7 +124,7 @@
125124
*
126125
* <h2>Inheritance</h2>
127126
*
128-
* <p>This annotation is inherited to subclasses.
127+
* <p>This annotation is inherited by subclasses.
129128
*
130129
* @since 5.13
131130
* @see Parameter

0 commit comments

Comments
 (0)