Skip to content

Commit

Permalink
Remove "Advanced Configuration" section from readme as it is not yet …
Browse files Browse the repository at this point in the history
…released
  • Loading branch information
maciejwalkowiak authored Oct 29, 2023
1 parent 54d0191 commit b85b186
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,33 +70,6 @@ It can be changed with setting `stubLocation` on `@ConfigureWireMock`:
@ConfigureWireMock(name = "...", property = "...", stubLocation = "my-stubs")
```

### Advanced configuration

More advanced configuration can be applied through configuration customizers:

```java
@ConfigureWireMock(
name = "todo-service",
property = "todo-service.url",
configurationCustomizers = SampleConfigurationCustomizer.class
)
```

Where `SampleConfigurationCustomizer` is a class implementing `WireMockConfigurationCustomizer`:

```java
class SampleConfigurationCustomizer implements WireMockConfigurationCustomizer {

@Override
public void customize(WireMockConfiguration configuration, ConfigureWireMock options) {
// apply changes to configuration
}
}
```

> [!IMPORTANT]
> `WireMockConfigurationCustomizer` must have a no-arg constructor.
Sounds good? Consider [❤️ Sponsoring](https://github.com/sponsors/maciejwalkowiak) the project! Thank you!

## 🙏 Credits
Expand Down

0 comments on commit b85b186

Please sign in to comment.