Replace 'via' with 'over' or 'through' in the documentation
Closes gh-33878
This commit is contained in:
@@ -311,7 +311,7 @@ public class SpringBootContextLoader extends AbstractContextLoader {
|
||||
|
||||
/**
|
||||
* Adapts a {@link ContextCustomizer} to a {@link ApplicationContextInitializer} so
|
||||
* that it can be triggered via {@link SpringApplication}.
|
||||
* that it can be triggered through {@link SpringApplication}.
|
||||
*/
|
||||
private static class ContextCustomizerAdapter
|
||||
implements ApplicationContextInitializer<ConfigurableApplicationContext> {
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.mockito.mock.MockCreationSettings;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
* Reset strategy used on a mock bean. Usually applied to a mock via the
|
||||
* Reset strategy used on a mock bean. Usually applied to a mock through the
|
||||
* {@link MockBean @MockBean} annotation but can also be directly applied to any mock in
|
||||
* the {@code ApplicationContext} using the static methods.
|
||||
*
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.junit.jupiter.api.extension.ParameterResolver;
|
||||
/**
|
||||
* JUnit Jupiter {@code @Extension} to capture {@link System#out System.out} and
|
||||
* {@link System#err System.err}. Can be registered for an entire test class or for an
|
||||
* individual test method via {@link ExtendWith @ExtendWith}. This extension provides
|
||||
* individual test method through {@link ExtendWith @ExtendWith}. This extension provides
|
||||
* {@linkplain ParameterResolver parameter resolution} for a {@link CapturedOutput}
|
||||
* instance which can be used to assert that the correct output was written.
|
||||
* <p>
|
||||
|
||||
@@ -57,8 +57,9 @@ import org.springframework.web.util.UriTemplateHandler;
|
||||
/**
|
||||
* Convenient alternative of {@link RestTemplate} that is suitable for integration tests.
|
||||
* {@code TestRestTemplate} is fault-tolerant. This means that 4xx and 5xx do not result
|
||||
* in an exception being thrown and can instead be detected via the {@link ResponseEntity
|
||||
* response entity} and its {@link ResponseEntity#getStatusCode() status code}.
|
||||
* in an exception being thrown and can instead be detected through the
|
||||
* {@link ResponseEntity response entity} and its {@link ResponseEntity#getStatusCode()
|
||||
* status code}.
|
||||
* <p>
|
||||
* A {@code TestRestTemplate} can optionally carry Basic authentication headers. If Apache
|
||||
* Http Client 4.3.2 or better is available (recommended) it will be used as the client,
|
||||
|
||||
@@ -88,9 +88,9 @@ class JacksonTesterIntegrationTests {
|
||||
void parseSpecialCharactersTest() throws Exception {
|
||||
JacksonTester.initFields(this, new ObjectMapper());
|
||||
// Confirms that the handling of special characters is symmetrical between
|
||||
// the serialization (via the JacksonTester) and the parsing (via json-path). By
|
||||
// default json-path uses SimpleJson as its parser, which has a slightly different
|
||||
// behavior to Jackson and breaks the symmetry. JacksonTester
|
||||
// the serialization (through the JacksonTester) and the parsing (through
|
||||
// json-path). By default json-path uses SimpleJson as its parser, which has a
|
||||
// slightly different behavior to Jackson and breaks the symmetry. JacksonTester
|
||||
// configures json-path to use Jackson for evaluating the path expressions and
|
||||
// restores the symmetry. See gh-15727
|
||||
String stringWithSpecialCharacters = "\u0006\u007F";
|
||||
|
||||
@@ -25,7 +25,8 @@ import org.junit.jupiter.api.extension.ExtensionContext;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
/**
|
||||
* Tests for {@link OutputCaptureExtension} when used via {@link ExtendWith @ExtendWith}.
|
||||
* Tests for {@link OutputCaptureExtension} when used through
|
||||
* {@link ExtendWith @ExtendWith}.
|
||||
*
|
||||
* @author Madhura Bhave
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user