Skip to content

Commit

Permalink
fix: corrected renovate for #2928
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Kronegg committed Jan 31, 2025
1 parent e88e07d commit d6c7ecb
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ private void emitHook(CoreHookDefinition coreHook) {
coreHook.getDefinitionLocation()
.map(this::createSourceReference)
.orElseGet(this::emptySourceReference),
coreHook.getTagExpression());
coreHook.getTagExpression(), null);
bus.send(Envelope.of(messagesHook));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ private void emitTestCaseMessage(EventBus bus) {
getTestSteps()
.stream()
.map(this::createTestStep)
.collect(toList())));
.collect(toList()),
null));
bus.send(envelope);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void attach(byte[] data, String mediaType, String name) {
null,
testExecutionId.toString(),
currentTestStepId.toString(),
null,
null)));
}

Expand All @@ -98,6 +99,7 @@ public void attach(String data, String mediaType, String name) {
null,
testExecutionId.toString(),
currentTestStepId.toString(),
null,
null)));
}

Expand All @@ -113,6 +115,7 @@ public void log(String text) {
null,
testExecutionId.toString(),
currentTestStepId.toString(),
null,
null)));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private void emitTestRunStarted() {
log.debug(() -> "Sending run test started event");
start = bus.getInstant();
bus.send(new TestRunStarted(start));
bus.send(Envelope.of(new io.cucumber.messages.types.TestRunStarted(toMessage(start))));
bus.send(Envelope.of(new io.cucumber.messages.types.TestRunStarted(toMessage(start), null)));
}

public void runBeforeAllHooks() {
Expand Down Expand Up @@ -120,7 +120,7 @@ private void emitTestRunFinished(Throwable exception) {
exception != null ? exception.getMessage() : null,
exception == null && exitStatus.isSuccess(),
toMessage(instant),
exception == null ? null : toMessage(exception));
exception == null ? null : toMessage(exception), null);
bus.send(Envelope.of(testRunFinished));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ void writes_index_html() throws Throwable {
EventBus bus = new TimeServiceEventBus(Clock.systemUTC(), UUID::randomUUID);
formatter.setEventPublisher(bus);

TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L));
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L), null);
bus.send(Envelope.of(testRunStarted));

TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null);
TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null, null);
bus.send(Envelope.of(testRunFinished));

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

TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L));
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L), null);
bus.send(Envelope.of(testRunStarted));

StepDefinition stepDefinition = new StepDefinition(
Expand All @@ -67,7 +67,7 @@ void ignores_step_definitions() throws Throwable {
Hook hook = new Hook("",
null,
SourceReference.of("https://example.com"),
null);
null, null);
bus.send(Envelope.of(hook));

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

assertEquals("[" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ void writes_report_xml() {
EventBus bus = new TimeServiceEventBus(Clock.systemUTC(), UUID::randomUUID);
formatter.setEventPublisher(bus);

TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L));
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L), null);
bus.send(Envelope.of(testRunStarted));

TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null);
TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null, null);
bus.send(Envelope.of(testRunFinished));

assertThat(bytes, bytes(equalTo("" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ void test() throws JSONException {
EventBus bus = new TimeServiceEventBus(Clock.systemUTC(), UUID::randomUUID);
formatter.setEventPublisher(bus);

TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L));
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L), null);
bus.send(Envelope.of(testRunStarted));

TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null);
TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null, null);
bus.send(Envelope.of(testRunFinished));

String ndjson = new String(bytes.toByteArray(), UTF_8);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public void should_print_banner() throws UnsupportedEncodingException {
noPublishFormatter.setMonochrome(true);
noPublishFormatter.setEventPublisher(bus);

bus.send(Envelope.of(new TestRunStarted(new Timestamp(0L, 0L))));
bus.send(Envelope.of(new TestRunFinished(null, true, new Timestamp(0L, 0L), null)));
bus.send(Envelope.of(new TestRunStarted(new Timestamp(0L, 0L), null)));
bus.send(Envelope.of(new TestRunFinished(null, true, new Timestamp(0L, 0L), null, null)));

assertThat(bytes, bytes(equalTo("" +
"┌───────────────────────────────────────────────────────────────────────────────────┐\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ public void fakeTestRunEvents() {
}
if (envelopeHandler != null) {
envelopeHandler.receive(
Envelope.of(new io.cucumber.messages.types.TestRunFinished("done", false, toMessage(now()), null)));
Envelope.of(
new io.cucumber.messages.types.TestRunFinished("done", false, toMessage(now()), null, null)));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ void writes_report_xml() {
EventBus bus = new TimeServiceEventBus(Clock.systemUTC(), UUID::randomUUID);
formatter.setEventPublisher(bus);

TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L));
TestRunStarted testRunStarted = new TestRunStarted(new Timestamp(10L, 0L), null);
bus.send(Envelope.of(testRunStarted));

TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null);
TestRunFinished testRunFinished = new TestRunFinished(null, true, new Timestamp(15L, 0L), null, null);
bus.send(Envelope.of(testRunFinished));

assertThat(bytes, bytes(equalTo("" +
Expand Down

0 comments on commit d6c7ecb

Please sign in to comment.