Skip to content

Commit 392c2ec

Browse files
committed
doc: minor typo fixes and link some Spring documentation
1 parent bbf3750 commit 392c2ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ In the constructor, we configure a "startupDetector". StartupDetector and Shutdo
104104
- `TcpPortEventDetector`: detects when a given port has been opened or closed.
105105
- `RecursiveProcessTerminationEventDetector`: detects when a test process has stopped running. This EventDetector is used by default as ShutdownDetector in `AbstractTestProcessDefinition`.
106106

107-
In the example above, we tell TestProcesses that whenever it starts the `MyTestProcess` definition, it should block and wait for the process to print the string "My process has started" on its stdOut stream before contining the tests.
107+
In the example above, we tell TestProcesses that whenever it starts the `MyTestProcess` definition, it should block and wait for the process to print the string "My process has started" on its stdOut stream before continuing the tests.
108108

109109
Finally, note the presence of Spring's `@Component` annotation. Using this annotation will create an instance of the `MyTestProcess` definition and register it as singleton in Spring's test context. Registering a definition as Spring bean is one way to have TestProcesses find it when we want to use it later.
110110

111111

112-
### Useing a test process for a test
112+
### Using a test process for a test
113113

114114
Once a TestProcessDefinition has been created, we can tell TestProcesses to make sure it is running before starting a given test method:
115115

@@ -123,7 +123,7 @@ public void testSomethingThatRequiresMyTestProcess() {
123123

124124
> **Warning**
125125
>
126-
> Make sure to enable AutoConfiguration in your Spring test context (e.g. by making sure you have `@EnableAutoConfiguration` declared).
126+
> Make sure to enable [auto-configuration](https://docs.spring.io/spring-boot/docs/current/reference/html/using.html#using.auto-configuration) in your Spring test context (e.g. by making sure you have [`@EnableAutoConfiguration`](https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/autoconfigure/EnableAutoConfiguration.html) declared).
127127
128128
There are a couple of ways to reference a `TestProcessDefinition`. Referencing it by its class will have TestProcesses look into the Spring Test Context to find a bean of that type (that's why we added `@Component` on `MyTestProcess` above).
129129

0 commit comments

Comments
 (0)