• 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

8.33
/src/main/java/com/box/sdkgen/schemas/workflow/Workflow.java
1
package com.box.sdkgen.schemas.workflow;
2

3
import com.box.sdkgen.schemas.workflowmini.WorkflowMini;
4
import com.box.sdkgen.schemas.workflowmini.WorkflowMiniTypeField;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import java.util.List;
8
import java.util.Objects;
9

10
/**
11
 * Box Relay Workflows are objects that represent a named collection of flows.
12
 *
13
 * <p>Your application must be authorized to use the `Manage Box Relay` application scope within the
14
 * developer console in order to use this resource.
15
 */
16
@JsonFilter("nullablePropertyFilter")
17
public class Workflow extends WorkflowMini {
18

19
  /** A list of flows assigned to a workflow. */
20
  protected List<WorkflowFlowsField> flows;
21

22
  public Workflow() {
23
    super();
1✔
24
  }
1✔
25

26
  protected Workflow(Builder builder) {
27
    super(builder);
×
28
    this.flows = builder.flows;
×
29
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
30
  }
×
31

32
  public List<WorkflowFlowsField> getFlows() {
33
    return flows;
1✔
34
  }
35

36
  @Override
37
  public boolean equals(Object o) {
38
    if (this == o) {
×
39
      return true;
×
40
    }
41
    if (o == null || getClass() != o.getClass()) {
×
42
      return false;
×
43
    }
44
    Workflow casted = (Workflow) o;
×
45
    return Objects.equals(id, casted.id)
×
46
        && Objects.equals(type, casted.type)
×
47
        && Objects.equals(name, casted.name)
×
48
        && Objects.equals(description, casted.description)
×
49
        && Objects.equals(isEnabled, casted.isEnabled)
×
50
        && Objects.equals(flows, casted.flows);
×
51
  }
52

53
  @Override
54
  public int hashCode() {
55
    return Objects.hash(id, type, name, description, isEnabled, flows);
×
56
  }
57

58
  @Override
59
  public String toString() {
60
    return "Workflow{"
×
61
        + "id='"
62
        + id
63
        + '\''
64
        + ", "
65
        + "type='"
66
        + type
67
        + '\''
68
        + ", "
69
        + "name='"
70
        + name
71
        + '\''
72
        + ", "
73
        + "description='"
74
        + description
75
        + '\''
76
        + ", "
77
        + "isEnabled='"
78
        + isEnabled
79
        + '\''
80
        + ", "
81
        + "flows='"
82
        + flows
83
        + '\''
84
        + "}";
85
  }
86

87
  public static class Builder extends WorkflowMini.Builder {
×
88

89
    protected List<WorkflowFlowsField> flows;
90

91
    public Builder flows(List<WorkflowFlowsField> flows) {
92
      this.flows = flows;
×
93
      return this;
×
94
    }
95

96
    @Override
97
    public Builder id(String id) {
98
      this.id = id;
×
99
      return this;
×
100
    }
101

102
    @Override
103
    public Builder type(WorkflowMiniTypeField type) {
104
      this.type = new EnumWrapper<WorkflowMiniTypeField>(type);
×
105
      return this;
×
106
    }
107

108
    @Override
109
    public Builder type(EnumWrapper<WorkflowMiniTypeField> type) {
110
      this.type = type;
×
111
      return this;
×
112
    }
113

114
    @Override
115
    public Builder name(String name) {
116
      this.name = name;
×
117
      return this;
×
118
    }
119

120
    @Override
121
    public Builder description(String description) {
122
      this.description = description;
×
123
      return this;
×
124
    }
125

126
    @Override
127
    public Builder isEnabled(Boolean isEnabled) {
128
      this.isEnabled = isEnabled;
×
129
      return this;
×
130
    }
131

132
    public Workflow build() {
133
      return new Workflow(this);
×
134
    }
135
  }
136
}
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