• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

uber / cadence-java-client / 2632

07 Nov 2024 12:17AM UTC coverage: 78.326% (-1.5%) from 79.78%
2632

Pull #951

buildkite

fimanishi
Add tests for PollerOptions.java
Pull Request #951: Add tests for PollerOptions.java

15185 of 19387 relevant lines covered (78.33%)

0.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.11
/src/main/java/com/uber/cadence/internal/replay/SignalExternalWorkflowParameters.java
1
/*
2
 *  Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
 *
4
 *  Modifications copyright (C) 2017 Uber Technologies, Inc.
5
 *
6
 *  Licensed under the Apache License, Version 2.0 (the "License"). You may not
7
 *  use this file except in compliance with the License. A copy of the License is
8
 *  located at
9
 *
10
 *  http://aws.amazon.com/apache2.0
11
 *
12
 *  or in the "license" file accompanying this file. This file is distributed on
13
 *  an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
 *  express or implied. See the License for the specific language governing
15
 *  permissions and limitations under the License.
16
 */
17

18
package com.uber.cadence.internal.replay;
19

20
import java.nio.charset.StandardCharsets;
21

22
public final class SignalExternalWorkflowParameters implements Cloneable {
1✔
23

24
  private String domain;
25

26
  private byte[] input;
27

28
  private String runId;
29

30
  private String signalName;
31

32
  private String workflowId;
33

34
  public String getDomain() {
35
    return domain;
1✔
36
  }
37

38
  public SignalExternalWorkflowParameters setDomain(String domain) {
39
    this.domain = domain;
1✔
40
    return this;
1✔
41
  }
42

43
  public byte[] getInput() {
44
    return input;
1✔
45
  }
46

47
  public void setInput(byte[] input) {
48
    this.input = input;
1✔
49
  }
1✔
50

51
  public SignalExternalWorkflowParameters withInput(byte[] input) {
52
    this.input = input;
×
53
    return this;
×
54
  }
55

56
  public String getRunId() {
57
    return runId;
1✔
58
  }
59

60
  public void setRunId(String runId) {
61
    this.runId = runId;
1✔
62
  }
1✔
63

64
  public SignalExternalWorkflowParameters withRunId(String runId) {
65
    this.runId = runId;
×
66
    return this;
×
67
  }
68

69
  public String getSignalName() {
70
    return signalName;
1✔
71
  }
72

73
  public void setSignalName(String signalName) {
74
    this.signalName = signalName;
1✔
75
  }
1✔
76

77
  public SignalExternalWorkflowParameters withSignalName(String signalName) {
78
    this.signalName = signalName;
×
79
    return this;
×
80
  }
81

82
  public String getWorkflowId() {
83
    return workflowId;
1✔
84
  }
85

86
  public void setWorkflowId(String workflowId) {
87
    this.workflowId = workflowId;
1✔
88
  }
1✔
89

90
  public SignalExternalWorkflowParameters withWorkflowId(String workflowId) {
91
    this.workflowId = workflowId;
×
92
    return this;
×
93
  }
94

95
  @Override
96
  public String toString() {
97
    StringBuilder sb = new StringBuilder();
×
98
    sb.append("{");
×
99
    sb.append("SignalName: " + signalName + ", ");
×
100
    sb.append("Input: " + new String(input, 0, 512, StandardCharsets.UTF_8) + ", ");
×
101
    sb.append("WorkflowId: " + workflowId + ", ");
×
102
    sb.append("RunId: " + runId + ", ");
×
103
    sb.append("}");
×
104
    return sb.toString();
×
105
  }
106

107
  public SignalExternalWorkflowParameters copy() {
108
    SignalExternalWorkflowParameters result = new SignalExternalWorkflowParameters();
×
109
    result.setInput(input);
×
110
    result.setRunId(runId);
×
111
    result.setSignalName(signalName);
×
112
    result.setWorkflowId(workflowId);
×
113
    return result;
×
114
  }
115
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc