Skip to content

Commit 5c990e6

Browse files
renovate[bot]Julien Kroneggmpkorstanje
authored
fix(deps): update messages and dependants (major) (#2928)
* fix(deps): update messages and dependants * fix: corrected renovate for #2928 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Julien Kronegg <[email protected]> Co-authored-by: M.P. Korstanje <[email protected]>
1 parent 0598529 commit 5c990e6

File tree

11 files changed

+25
-20
lines changed

11 files changed

+25
-20
lines changed

cucumber-bom/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<properties>
1616
<ci-environment.version>10.0.1</ci-environment.version>
1717
<cucumber-expressions.version>18.0.1</cucumber-expressions.version>
18-
<gherkin.version>28.0.0</gherkin.version>
18+
<gherkin.version>31.0.0</gherkin.version>
1919
<html-formatter.version>21.8.0</html-formatter.version>
2020
<junit-xml-formatter.version>0.7.1</junit-xml-formatter.version>
21-
<messages.version>24.1.0</messages.version>
21+
<messages.version>27.1.0</messages.version>
2222
<query.version>13.1.0</query.version>
2323
<tag-expressions.version>6.1.2</tag-expressions.version>
2424
<testng-xml-formatter.version>0.2.0</testng-xml-formatter.version>

cucumber-core/src/main/java/io/cucumber/core/runner/CachingGlue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private void emitHook(CoreHookDefinition coreHook) {
306306
coreHook.getDefinitionLocation()
307307
.map(this::createSourceReference)
308308
.orElseGet(this::emptySourceReference),
309-
coreHook.getTagExpression());
309+
coreHook.getTagExpression(), null);
310310
bus.send(Envelope.of(messagesHook));
311311
}
312312

cucumber-core/src/main/java/io/cucumber/core/runner/TestCase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ private void emitTestCaseMessage(EventBus bus) {
161161
getTestSteps()
162162
.stream()
163163
.map(this::createTestStep)
164-
.collect(toList())));
164+
.collect(toList()),
165+
null));
165166
bus.send(envelope);
166167
}
167168

cucumber-core/src/main/java/io/cucumber/core/runner/TestCaseState.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public void attach(byte[] data, String mediaType, String name) {
8080
null,
8181
testExecutionId.toString(),
8282
currentTestStepId.toString(),
83+
null,
8384
null)));
8485
}
8586

@@ -98,6 +99,7 @@ public void attach(String data, String mediaType, String name) {
9899
null,
99100
testExecutionId.toString(),
100101
currentTestStepId.toString(),
102+
null,
101103
null)));
102104
}
103105

@@ -113,6 +115,7 @@ public void log(String text) {
113115
null,
114116
testExecutionId.toString(),
115117
currentTestStepId.toString(),
118+
null,
116119
null)));
117120
}
118121

cucumber-core/src/main/java/io/cucumber/core/runtime/CucumberExecutionContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private void emitTestRunStarted() {
8585
log.debug(() -> "Sending run test started event");
8686
start = bus.getInstant();
8787
bus.send(new TestRunStarted(start));
88-
bus.send(Envelope.of(new io.cucumber.messages.types.TestRunStarted(toMessage(start))));
88+
bus.send(Envelope.of(new io.cucumber.messages.types.TestRunStarted(toMessage(start), null)));
8989
}
9090

9191
public void runBeforeAllHooks() {
@@ -120,7 +120,7 @@ private void emitTestRunFinished(Throwable exception) {
120120
exception != null ? exception.getMessage() : null,
121121
exception == null && exitStatus.isSuccess(),
122122
toMessage(instant),
123-
exception == null ? null : toMessage(exception));
123+
exception == null ? null : toMessage(exception), null);
124124
bus.send(Envelope.of(testRunFinished));
125125
}
126126

cucumber-core/src/test/java/io/cucumber/core/plugin/HtmlFormatterTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ void writes_index_html() throws Throwable {
3535
EventBus bus = new TimeServiceEventBus(Clock.systemUTC(), UUID::randomUUID);
3636
formatter.setEventPublisher(bus);
3737

38-
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L));
38+
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L), null);
3939
bus.send(Envelope.of(testRunStarted));
4040

41-
TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null);
41+
TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null, null);
4242
bus.send(Envelope.of(testRunFinished));
4343

4444
assertEquals("[" +
@@ -55,7 +55,7 @@ void ignores_step_definitions() throws Throwable {
5555
EventBus bus = new TimeServiceEventBus(Clock.systemUTC(), UUID::randomUUID);
5656
formatter.setEventPublisher(bus);
5757

58-
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L));
58+
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L), null);
5959
bus.send(Envelope.of(testRunStarted));
6060

6161
StepDefinition stepDefinition = new StepDefinition(
@@ -67,7 +67,7 @@ void ignores_step_definitions() throws Throwable {
6767
Hook hook = new Hook("",
6868
null,
6969
SourceReference.of("https://example.com"),
70-
null);
70+
null, null);
7171
bus.send(Envelope.of(hook));
7272

7373
// public ParameterType(String name, List<String> regularExpressions,
@@ -86,7 +86,7 @@ void ignores_step_definitions() throws Throwable {
8686
null,
8787
true,
8888
new Timestamp(15L, 0L),
89-
null);
89+
null, null);
9090
bus.send(Envelope.of(testRunFinished));
9191

9292
assertEquals("[" +

cucumber-core/src/test/java/io/cucumber/core/plugin/JUnitFormatterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ void writes_report_xml() {
2525
EventBus bus = new TimeServiceEventBus(Clock.systemUTC(), UUID::randomUUID);
2626
formatter.setEventPublisher(bus);
2727

28-
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L));
28+
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L), null);
2929
bus.send(Envelope.of(testRunStarted));
3030

31-
TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null);
31+
TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null, null);
3232
bus.send(Envelope.of(testRunFinished));
3333

3434
assertThat(bytes, bytes(equalTo("" +

cucumber-core/src/test/java/io/cucumber/core/plugin/MessageFormatterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ void test() throws JSONException {
2828
EventBus bus = new TimeServiceEventBus(Clock.systemUTC(), UUID::randomUUID);
2929
formatter.setEventPublisher(bus);
3030

31-
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L));
31+
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L), null);
3232
bus.send(Envelope.of(testRunStarted));
3333

34-
TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null);
34+
TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null, null);
3535
bus.send(Envelope.of(testRunFinished));
3636

3737
String ndjson = new String(bytes.toByteArray(), UTF_8);

cucumber-core/src/test/java/io/cucumber/core/plugin/NoPublishFormatterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public void should_print_banner() throws UnsupportedEncodingException {
3030
noPublishFormatter.setMonochrome(true);
3131
noPublishFormatter.setEventPublisher(bus);
3232

33-
bus.send(Envelope.of(new TestRunStarted(new Timestamp(0L, 0L))));
34-
bus.send(Envelope.of(new TestRunFinished(null, true, new Timestamp(0L, 0L), null)));
33+
bus.send(Envelope.of(new TestRunStarted(new Timestamp(0L, 0L), null)));
34+
bus.send(Envelope.of(new TestRunFinished(null, true, new Timestamp(0L, 0L), null, null)));
3535

3636
assertThat(bytes, bytes(equalTo("" +
3737
"┌───────────────────────────────────────────────────────────────────────────────────┐\n" +

cucumber-core/src/test/java/io/cucumber/core/plugin/PluginFactoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ public void fakeTestRunEvents() {
413413
}
414414
if (envelopeHandler != null) {
415415
envelopeHandler.receive(
416-
Envelope.of(new io.cucumber.messages.types.TestRunFinished("done", false, toMessage(now()), null)));
416+
Envelope.of(
417+
new io.cucumber.messages.types.TestRunFinished("done", false, toMessage(now()), null, null)));
417418
}
418419
}
419420

0 commit comments

Comments
 (0)