You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,9 @@ public void testSomethingThatRequiresMyTestProcess() {
121
121
}
122
122
```
123
123
124
+
> **Warning**
125
+
> Make sure to enable AutoConfiguration in your Spring test context (e.g. by making sure you have `@EnableAutoConfiguration` declared).
126
+
124
127
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).
125
128
126
129
It is also possible to use the Spring bean name (note that when using `@Component`, Spring uses the lowercased classname as bean name, which is what we use here):
@@ -183,6 +186,7 @@ The `TestProcessesRegistry` has methods for starting and stopping test processes
0 commit comments