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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

9.3
/src/main/java/com/box/sdkgen/schemas/workflow/WorkflowFlowsOutcomesField.java
1
package com.box.sdkgen.schemas.workflow;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.List;
11
import java.util.Objects;
12

13
@JsonFilter("nullablePropertyFilter")
14
public class WorkflowFlowsOutcomesField extends SerializableObject {
15

16
  /** The identifier of the outcome. */
17
  protected String id;
18

19
  /** The outcomes resource type. */
20
  @JsonDeserialize(
21
      using = WorkflowFlowsOutcomesTypeField.WorkflowFlowsOutcomesTypeFieldDeserializer.class)
22
  @JsonSerialize(
23
      using = WorkflowFlowsOutcomesTypeField.WorkflowFlowsOutcomesTypeFieldSerializer.class)
24
  protected EnumWrapper<WorkflowFlowsOutcomesTypeField> type;
25

26
  /** The name of the outcome. */
27
  protected String name;
28

29
  @JsonDeserialize(
30
      using =
31
          WorkflowFlowsOutcomesActionTypeField.WorkflowFlowsOutcomesActionTypeFieldDeserializer
32
              .class)
33
  @JsonSerialize(
34
      using =
35
          WorkflowFlowsOutcomesActionTypeField.WorkflowFlowsOutcomesActionTypeFieldSerializer.class)
36
  @JsonProperty("action_type")
37
  protected EnumWrapper<WorkflowFlowsOutcomesActionTypeField> actionType;
38

39
  /**
40
   * If `action_type` is `assign_task` and the task is rejected, returns a list of outcomes to
41
   * complete.
42
   */
43
  @JsonProperty("if_rejected")
44
  protected List<WorkflowFlowsOutcomesIfRejectedField> ifRejected;
45

46
  public WorkflowFlowsOutcomesField() {
47
    super();
1✔
48
  }
1✔
49

50
  protected WorkflowFlowsOutcomesField(Builder builder) {
51
    super();
×
52
    this.id = builder.id;
×
53
    this.type = builder.type;
×
54
    this.name = builder.name;
×
55
    this.actionType = builder.actionType;
×
56
    this.ifRejected = builder.ifRejected;
×
57
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
58
  }
×
59

60
  public String getId() {
61
    return id;
×
62
  }
63

64
  public EnumWrapper<WorkflowFlowsOutcomesTypeField> getType() {
65
    return type;
1✔
66
  }
67

68
  public String getName() {
69
    return name;
×
70
  }
71

72
  public EnumWrapper<WorkflowFlowsOutcomesActionTypeField> getActionType() {
73
    return actionType;
1✔
74
  }
75

76
  public List<WorkflowFlowsOutcomesIfRejectedField> getIfRejected() {
77
    return ifRejected;
×
78
  }
79

80
  @Override
81
  public boolean equals(Object o) {
82
    if (this == o) {
×
83
      return true;
×
84
    }
85
    if (o == null || getClass() != o.getClass()) {
×
86
      return false;
×
87
    }
88
    WorkflowFlowsOutcomesField casted = (WorkflowFlowsOutcomesField) o;
×
89
    return Objects.equals(id, casted.id)
×
90
        && Objects.equals(type, casted.type)
×
91
        && Objects.equals(name, casted.name)
×
92
        && Objects.equals(actionType, casted.actionType)
×
93
        && Objects.equals(ifRejected, casted.ifRejected);
×
94
  }
95

96
  @Override
97
  public int hashCode() {
98
    return Objects.hash(id, type, name, actionType, ifRejected);
×
99
  }
100

101
  @Override
102
  public String toString() {
103
    return "WorkflowFlowsOutcomesField{"
×
104
        + "id='"
105
        + id
106
        + '\''
107
        + ", "
108
        + "type='"
109
        + type
110
        + '\''
111
        + ", "
112
        + "name='"
113
        + name
114
        + '\''
115
        + ", "
116
        + "actionType='"
117
        + actionType
118
        + '\''
119
        + ", "
120
        + "ifRejected='"
121
        + ifRejected
122
        + '\''
123
        + "}";
124
  }
125

126
  public static class Builder extends NullableFieldTracker {
×
127

128
    protected String id;
129

130
    protected EnumWrapper<WorkflowFlowsOutcomesTypeField> type;
131

132
    protected String name;
133

134
    protected EnumWrapper<WorkflowFlowsOutcomesActionTypeField> actionType;
135

136
    protected List<WorkflowFlowsOutcomesIfRejectedField> ifRejected;
137

138
    public Builder id(String id) {
139
      this.id = id;
×
140
      return this;
×
141
    }
142

143
    public Builder type(WorkflowFlowsOutcomesTypeField type) {
144
      this.type = new EnumWrapper<WorkflowFlowsOutcomesTypeField>(type);
×
145
      return this;
×
146
    }
147

148
    public Builder type(EnumWrapper<WorkflowFlowsOutcomesTypeField> type) {
149
      this.type = type;
×
150
      return this;
×
151
    }
152

153
    public Builder name(String name) {
154
      this.name = name;
×
155
      return this;
×
156
    }
157

158
    public Builder actionType(WorkflowFlowsOutcomesActionTypeField actionType) {
159
      this.actionType = new EnumWrapper<WorkflowFlowsOutcomesActionTypeField>(actionType);
×
160
      return this;
×
161
    }
162

163
    public Builder actionType(EnumWrapper<WorkflowFlowsOutcomesActionTypeField> actionType) {
164
      this.actionType = actionType;
×
165
      return this;
×
166
    }
167

168
    public Builder ifRejected(List<WorkflowFlowsOutcomesIfRejectedField> ifRejected) {
169
      this.ifRejected = ifRejected;
×
170
      return this;
×
171
    }
172

173
    public WorkflowFlowsOutcomesField build() {
174
      return new WorkflowFlowsOutcomesField(this);
×
175
    }
176
  }
177
}
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

© 2026 Coveralls, Inc