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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

68 of 82 new or added lines in 2 files covered. (82.93%)

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

0.36 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
@JsonFilter("nullablePropertyFilter")
11
public class Workflow extends WorkflowMini {
12

13
  protected List<WorkflowFlowsField> flows;
14

15
  public Workflow() {
16
    super();
1✔
17
  }
1✔
18

19
  protected Workflow(Builder builder) {
20
    super(builder);
×
UNCOV
21
    this.flows = builder.flows;
×
UNCOV
22
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
23
  }
×
24

25
  public List<WorkflowFlowsField> getFlows() {
26
    return flows;
1✔
27
  }
28

29
  @Override
30
  public boolean equals(Object o) {
31
    if (this == o) {
×
32
      return true;
×
33
    }
34
    if (o == null || getClass() != o.getClass()) {
×
35
      return false;
×
36
    }
37
    Workflow casted = (Workflow) o;
×
38
    return Objects.equals(id, casted.id)
×
39
        && Objects.equals(type, casted.type)
×
40
        && Objects.equals(name, casted.name)
×
UNCOV
41
        && Objects.equals(description, casted.description)
×
UNCOV
42
        && Objects.equals(isEnabled, casted.isEnabled)
×
UNCOV
43
        && Objects.equals(flows, casted.flows);
×
44
  }
45

46
  @Override
47
  public int hashCode() {
UNCOV
48
    return Objects.hash(id, type, name, description, isEnabled, flows);
×
49
  }
50

51
  @Override
52
  public String toString() {
UNCOV
53
    return "Workflow{"
×
54
        + "id='"
55
        + id
56
        + '\''
57
        + ", "
58
        + "type='"
59
        + type
60
        + '\''
61
        + ", "
62
        + "name='"
63
        + name
64
        + '\''
65
        + ", "
66
        + "description='"
67
        + description
68
        + '\''
69
        + ", "
70
        + "isEnabled='"
71
        + isEnabled
72
        + '\''
73
        + ", "
74
        + "flows='"
75
        + flows
76
        + '\''
77
        + "}";
78
  }
79

UNCOV
80
  public static class Builder extends WorkflowMini.Builder {
×
81

82
    protected List<WorkflowFlowsField> flows;
83

84
    public Builder flows(List<WorkflowFlowsField> flows) {
UNCOV
85
      this.flows = flows;
×
UNCOV
86
      return this;
×
87
    }
88

89
    @Override
90
    public Builder id(String id) {
UNCOV
91
      this.id = id;
×
UNCOV
92
      return this;
×
93
    }
94

95
    @Override
96
    public Builder type(WorkflowMiniTypeField type) {
UNCOV
97
      this.type = new EnumWrapper<WorkflowMiniTypeField>(type);
×
UNCOV
98
      return this;
×
99
    }
100

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

107
    @Override
108
    public Builder name(String name) {
UNCOV
109
      this.name = name;
×
UNCOV
110
      return this;
×
111
    }
112

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

119
    @Override
120
    public Builder isEnabled(Boolean isEnabled) {
UNCOV
121
      this.isEnabled = isEnabled;
×
UNCOV
122
      return this;
×
123
    }
124

125
    public Workflow build() {
UNCOV
126
      return new Workflow(this);
×
127
    }
128
  }
129
}
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