Skip to content

Commit

Permalink
Add extensionScanningEnabled option to @wiremocktest. (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-winkelman authored Jan 15, 2024
1 parent dcbeeae commit 806af3d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _docs/junit-jupiter.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ public class HttpsFixedPortDeclarativeWireMockTest {
}
```

### Enabling Extension Scanning

When [extending WireMock via service loading](extending-wiremock.md#extension-registration-via-service-loading), it may
be helpful to have WireMock scan for extensions automatically via the `extensionScanningEnabled` parameter.

```java
@WireMockTest(extensionScanningEnabled = true)
public class ExtensionScanningDeclarativeWireMockTest {
...
}
```

## Advanced usage - programmatic

Invoking the extension programmatically with `@RegisterExtension` allows you to run any number of WireMock instances and provides full control
Expand Down

0 comments on commit 806af3d

Please sign in to comment.