Skip to content

Commit e022b3f

Browse files
committed
Renamed a few more methods from Signal to Backlinks
1 parent 0db359d commit e022b3f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

temporal-sdk/src/test/java/io/temporal/internal/client/RootWorkflowClientInvokerLinkPropagationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void signalForwardsInboundLinksAndCapturesResponseBacklink() {
9494
Assert.assertEquals(inboundLink, sent.getLinks(0));
9595

9696
// Backward direction: the response's link is now on the context for the task handler to read.
97-
List<Link> captured = nexusCtx.getSignalWorkflowResponseLinks();
97+
List<Link> captured = nexusCtx.getBacklinks();
9898
Assert.assertEquals("expected one captured backlink", 1, captured.size());
9999
Assert.assertEquals(responseLink, captured.get(0));
100100
}
@@ -125,7 +125,7 @@ public void signalAgainstOlderServerCapturesNoBacklink() {
125125
// Backward direction: no backlink captured because the server didn't send one.
126126
Assert.assertTrue(
127127
"expected no captured backlink when server returned no link",
128-
nexusCtx.getSignalWorkflowResponseLinks().isEmpty());
128+
nexusCtx.getBacklinks().isEmpty());
129129
}
130130

131131
/**
@@ -146,7 +146,7 @@ public void multipleSignalsAccumulateAllBacklinks() {
146146
invoker.signal(newSignalInput());
147147
invoker.signal(newSignalInput());
148148

149-
List<Link> captured = nexusCtx.getSignalWorkflowResponseLinks();
149+
List<Link> captured = nexusCtx.getBacklinks();
150150
Assert.assertEquals(
151151
"expected one backlink per signal call",
152152
Arrays.asList(firstResponseLink, secondResponseLink),

temporal-sdk/src/test/java/io/temporal/internal/nexus/NexusTaskHandlerImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public OperationStartResult<String> start(
227227
Link.WorkflowEvent.EventReference.newBuilder()
228228
.setEventType(EventType.EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED)))
229229
.build();
230-
CurrentNexusOperationContext.get().addSignalWorkflowResponseLink(backlink);
230+
CurrentNexusOperationContext.get().addBacklink(backlink);
231231
return OperationStartResult.async(token);
232232
}
233233

0 commit comments

Comments
 (0)