Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ public void failWhenUpdateNamesDoNotMatch() {
}

@Test
@SuppressWarnings("deprecation") // Test uses deprecated policy for validation
public void failServerSideWhenStartIsInvalid() {
WorkflowClient workflowClient = testWorkflowRule.getWorkflowClient();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ public void startWorkflowExecution(
}
}

@SuppressWarnings(
"deprecation") // Backwards compatibility for WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING
StartWorkflowExecutionResponse startWorkflowExecutionImpl(
StartWorkflowExecutionRequest startRequest,
Duration backoffStartInterval,
Expand Down Expand Up @@ -475,6 +477,8 @@ private StartWorkflowExecutionResponse throwDuplicatedWorkflow(
WorkflowExecutionAlreadyStartedFailure.getDescriptor());
}

@SuppressWarnings(
"deprecation") // Backwards compatibility for WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING
private void validateWorkflowIdReusePolicy(
WorkflowIdReusePolicy reusePolicy, WorkflowIdConflictPolicy conflictPolicy) {
if (conflictPolicy != WorkflowIdConflictPolicy.WORKFLOW_ID_CONFLICT_POLICY_UNSPECIFIED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void alreadyRunningWorkflowBlocksSecondEvenWithAllowDuplicate() {
}

@Test
@SuppressWarnings("deprecation") // Test for deprecated policy behavior
public void secondWorkflowTerminatesFirst() {
String workflowId = "terminate-if-running-1";
WorkflowOptions options =
Expand Down
Loading