• 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

13.04
/src/main/java/com/box/sdkgen/schemas/workflow/WorkflowFlowsField.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.internal.utils.DateTimeUtils;
6
import com.box.sdkgen.schemas.userbase.UserBase;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.time.OffsetDateTime;
13
import java.util.List;
14
import java.util.Objects;
15

16
@JsonFilter("nullablePropertyFilter")
17
public class WorkflowFlowsField extends SerializableObject {
18

19
  /** The identifier of the flow. */
20
  protected String id;
21

22
  /** The flow's resource type. */
23
  @JsonDeserialize(using = WorkflowFlowsTypeField.WorkflowFlowsTypeFieldDeserializer.class)
24
  @JsonSerialize(using = WorkflowFlowsTypeField.WorkflowFlowsTypeFieldSerializer.class)
25
  protected EnumWrapper<WorkflowFlowsTypeField> type;
26

27
  protected WorkflowFlowsTriggerField trigger;
28

29
  protected List<WorkflowFlowsOutcomesField> outcomes;
30

31
  /** When this flow was created. */
32
  @JsonProperty("created_at")
33
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
34
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
35
  protected OffsetDateTime createdAt;
36

37
  @JsonProperty("created_by")
38
  protected UserBase createdBy;
39

40
  public WorkflowFlowsField() {
41
    super();
1✔
42
  }
1✔
43

44
  protected WorkflowFlowsField(Builder builder) {
45
    super();
×
46
    this.id = builder.id;
×
47
    this.type = builder.type;
×
48
    this.trigger = builder.trigger;
×
49
    this.outcomes = builder.outcomes;
×
50
    this.createdAt = builder.createdAt;
×
51
    this.createdBy = builder.createdBy;
×
52
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
53
  }
×
54

55
  public String getId() {
56
    return id;
1✔
57
  }
58

59
  public EnumWrapper<WorkflowFlowsTypeField> getType() {
60
    return type;
1✔
61
  }
62

63
  public WorkflowFlowsTriggerField getTrigger() {
64
    return trigger;
1✔
65
  }
66

67
  public List<WorkflowFlowsOutcomesField> getOutcomes() {
68
    return outcomes;
1✔
69
  }
70

71
  public OffsetDateTime getCreatedAt() {
72
    return createdAt;
×
73
  }
74

75
  public UserBase getCreatedBy() {
76
    return createdBy;
×
77
  }
78

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

96
  @Override
97
  public int hashCode() {
98
    return Objects.hash(id, type, trigger, outcomes, createdAt, createdBy);
×
99
  }
100

101
  @Override
102
  public String toString() {
103
    return "WorkflowFlowsField{"
×
104
        + "id='"
105
        + id
106
        + '\''
107
        + ", "
108
        + "type='"
109
        + type
110
        + '\''
111
        + ", "
112
        + "trigger='"
113
        + trigger
114
        + '\''
115
        + ", "
116
        + "outcomes='"
117
        + outcomes
118
        + '\''
119
        + ", "
120
        + "createdAt='"
121
        + createdAt
122
        + '\''
123
        + ", "
124
        + "createdBy='"
125
        + createdBy
126
        + '\''
127
        + "}";
128
  }
129

130
  public static class Builder extends NullableFieldTracker {
×
131

132
    protected String id;
133

134
    protected EnumWrapper<WorkflowFlowsTypeField> type;
135

136
    protected WorkflowFlowsTriggerField trigger;
137

138
    protected List<WorkflowFlowsOutcomesField> outcomes;
139

140
    protected OffsetDateTime createdAt;
141

142
    protected UserBase createdBy;
143

144
    public Builder id(String id) {
145
      this.id = id;
×
146
      return this;
×
147
    }
148

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

154
    public Builder type(EnumWrapper<WorkflowFlowsTypeField> type) {
155
      this.type = type;
×
156
      return this;
×
157
    }
158

159
    public Builder trigger(WorkflowFlowsTriggerField trigger) {
160
      this.trigger = trigger;
×
161
      return this;
×
162
    }
163

164
    public Builder outcomes(List<WorkflowFlowsOutcomesField> outcomes) {
165
      this.outcomes = outcomes;
×
166
      return this;
×
167
    }
168

169
    public Builder createdAt(OffsetDateTime createdAt) {
170
      this.createdAt = createdAt;
×
171
      return this;
×
172
    }
173

174
    public Builder createdBy(UserBase createdBy) {
175
      this.createdBy = createdBy;
×
176
      return this;
×
177
    }
178

179
    public WorkflowFlowsField build() {
180
      return new WorkflowFlowsField(this);
×
181
    }
182
  }
183
}
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