diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 7f22477032..b99a1e776f 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1 +1,2 @@ -Merge upstream wiremock version 2.35.1 +Update to wiremock 3.0.4 + diff --git a/src/main/java/com/github/tomakehurst/wiremock/stubbing/AbstractScenarios.java b/src/main/java/com/github/tomakehurst/wiremock/stubbing/AbstractScenarios.java index 666e894adb..be3dcd72b7 100644 --- a/src/main/java/com/github/tomakehurst/wiremock/stubbing/AbstractScenarios.java +++ b/src/main/java/com/github/tomakehurst/wiremock/stubbing/AbstractScenarios.java @@ -19,6 +19,8 @@ import static java.util.stream.Collectors.toList; import com.github.tomakehurst.wiremock.admin.NotFoundException; +import com.github.tomakehurst.wiremock.jetty.websockets.Message; +import com.github.tomakehurst.wiremock.jetty.websockets.WebSocketEndpoint; import com.github.tomakehurst.wiremock.store.ScenariosStore; import java.util.List; @@ -106,6 +108,7 @@ public void onStubServed(StubMapping mapping) { && (mapping.getRequiredScenarioState() == null || scenario.getState().equals(mapping.getRequiredScenarioState()))) { Scenario newScenario = scenario.setState(mapping.getNewScenarioState()); + WebSocketEndpoint.broadcast(Message.SCENARIO); store.put(scenarioName, newScenario); } }