Skip to content

Commit dc0f0c7

Browse files
committed
Merge branch '5.3.x'
2 parents 49b47cc + 31a9694 commit dc0f0c7

37 files changed

+65
-64
lines changed

spring-test/src/main/java/org/springframework/mock/http/client/MockClientHttpRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public final ClientHttpResponse execute() throws IOException {
115115
* The default implementation returns the configured
116116
* {@link #setResponse(ClientHttpResponse) response}.
117117
* <p>Override this method to execute the request and provide a response,
118-
* potentially different than the configured response.
118+
* potentially different from the configured response.
119119
*/
120120
protected ClientHttpResponse executeInternal() throws IOException {
121121
Assert.state(this.clientHttpResponse != null, "No ClientHttpResponse");

spring-test/src/main/java/org/springframework/mock/http/server/reactive/MockServerHttpRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public static BodyBuilder method(HttpMethod method, String uri, Object... vars)
231231
}
232232

233233
/**
234-
* Create a builder with a raw HTTP method value value that is outside the
234+
* Create a builder with a raw HTTP method value that is outside the
235235
* range of {@link HttpMethod} enum values.
236236
* @param httpMethod the HTTP methodValue value
237237
* @param uri the URI template for target the URL
@@ -253,7 +253,7 @@ private static URI toUri(String uri, Object[] vars) {
253253

254254
/**
255255
* Request builder exposing properties not related to the body.
256-
* @param <B> the builder sub-class
256+
* @param <B> the builder subclass
257257
*/
258258
public interface BaseBuilder<B extends BaseBuilder<B>> {
259259

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
Class<? extends ActiveProfilesResolver> resolver() default ActiveProfilesResolver.class;
7979

8080
/**
81-
* Whether or not bean definition profiles from superclasses and enclosing
81+
* Whether bean definition profiles from superclasses and enclosing
8282
* classes should be <em>inherited</em>.
8383
* <p>The default value is {@code true}, which means that a test class will
8484
* <em>inherit</em> bean definition profiles defined by a test superclass or

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* {@code SoapWebServiceTests} and {@code RestWebServiceTests} both extend
6767
* {@code AbstractWebTests} and define a context hierarchy via {@code @ContextHierarchy}.
6868
* The result is that three application contexts will be loaded (one for each
69-
* declaration of {@code @ContextConfiguration}, and the application context
69+
* declaration of {@code @ContextConfiguration}), and the application context
7070
* loaded based on the configuration in {@code AbstractWebTests} will be set as
7171
* the parent context for each of the contexts loaded for the concrete subclasses.
7272
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* enclosing class hierarchies (i.e., for <em>inner</em> test classes).
3535
*
3636
* <p>If {@code @NestedTestConfiguration} is not <em>present</em> or
37-
* <em>meta-present</em> on a test class, in its super type hierarchy, or in its
37+
* <em>meta-present</em> on a test class, in its supertype hierarchy, or in its
3838
* enclosing class hierarchy, the default <em>enclosing configuration inheritance
3939
* mode</em> will be used. A {@code @NestedTestConfiguration} declaration on an
4040
* enclosing class for a nested interface will be ignored when searching for the

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
Class<? extends TestExecutionListener>[] listeners() default {};
7979

8080
/**
81-
* Whether or not {@link #listeners TestExecutionListeners} from superclasses
81+
* Whether {@link #listeners TestExecutionListeners} from superclasses
8282
* and enclosing classes should be <em>inherited</em>.
8383
* <p>The default value is {@code true}, which means that an annotated class
8484
* will <em>inherit</em> the listeners defined by an annotated superclass or
@@ -130,7 +130,7 @@
130130

131131

132132
/**
133-
* Enumeration of <em>modes</em> that dictate whether or not explicitly
133+
* Enumeration of <em>modes</em> that dictate whether explicitly
134134
* declared listeners are merged with the default listeners when
135135
* {@code @TestExecutionListeners} is declared on a class that does
136136
* <strong>not</strong> inherit listeners from a superclass or enclosing

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
String[] locations() default {};
151151

152152
/**
153-
* Whether or not test property source {@link #locations} from superclasses
153+
* Whether test property source {@link #locations} from superclasses
154154
* and enclosing classes should be <em>inherited</em>.
155155
* <p>The default value is {@code true}, which means that a test class will
156156
* <em>inherit</em> property source locations defined by a superclass or
@@ -230,7 +230,7 @@
230230
String[] properties() default {};
231231

232232
/**
233-
* Whether or not inlined test {@link #properties} from superclasses and
233+
* Whether inlined test {@link #properties} from superclasses and
234234
* enclosing classes should be <em>inherited</em>.
235235
* <p>The default value is {@code true}, which means that a test class will
236236
* <em>inherit</em> inlined properties defined by a superclass or enclosing

spring-test/src/main/java/org/springframework/test/context/cache/ContextCache.java

Lines changed: 4 additions & 3 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-2022 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.
@@ -36,7 +36,7 @@
3636
* initialization is complex. Although the initialization of a Spring context
3737
* itself is typically very quick, some beans in a context &mdash; for example,
3838
* an embedded database or a {@code LocalContainerEntityManagerFactoryBean} for
39-
* working with JPA &mdash; may take several seconds to initialize. Hence it
39+
* working with JPA &mdash; may take several seconds to initialize. Hence, it
4040
* often makes sense to perform that initialization only once per test suite or
4141
* JVM process.
4242
*
@@ -155,7 +155,8 @@ public interface ContextCache {
155155
void clear();
156156

157157
/**
158-
* Clear hit and miss count statistics for the cache (i.e., reset counters to zero).
158+
* Clear {@linkplain #getHitCount() hit count} and {@linkplain #getMissCount()
159+
* miss count} statistics for the cache (i.e., reset counters to zero).
159160
*/
160161
void clearStatistics();
161162

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected int deleteFromTableWhere(String tableName, String whereClause, Object.
193193
}
194194

195195
/**
196-
* Convenience method for dropping all of the specified tables.
196+
* Convenience method for dropping all the specified tables.
197197
* <p>Use with caution outside of a transaction!
198198
* @param names the names of the tables to drop
199199
* @since 3.2
@@ -209,7 +209,7 @@ protected void dropTables(String... names) {
209209
* <p>The script will normally be loaded by classpath.
210210
* <p><b>Do not use this method to execute DDL if you expect rollback.</b>
211211
* @param sqlResourcePath the Spring resource path for the SQL script
212-
* @param continueOnError whether or not to continue without throwing an
212+
* @param continueOnError whether to continue without throwing an
213213
* exception in the event of an error
214214
* @throws DataAccessException if there is an error executing a statement
215215
* @see ResourceDatabasePopulator

spring-test/src/main/java/org/springframework/test/context/support/AbstractContextLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ protected String[] modifyLocations(Class<?> clazz, String... locations) {
284284
}
285285

286286
/**
287-
* Determine whether or not <em>default</em> resource locations should be
287+
* Determine whether <em>default</em> resource locations should be
288288
* generated if the {@code locations} provided to
289289
* {@link #processLocations(Class, String...)} are {@code null} or empty.
290290
* <p>As of Spring 3.1, the semantics of this method have been overloaded
291291
* to include detection of either default resource locations or default
292292
* configuration classes. Consequently, this method can also be used to
293-
* determine whether or not <em>default</em> configuration classes should be
293+
* determine whether <em>default</em> configuration classes should be
294294
* detected if the {@code classes} present in the
295295
* {@link ContextConfigurationAttributes configuration attributes} supplied
296296
* to {@link #processContextConfiguration(ContextConfigurationAttributes)}

0 commit comments

Comments
 (0)