• 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

12.2
/src/main/java/com/box/sdkgen/schemas/workflowmini/WorkflowMini.java
1
package com.box.sdkgen.schemas.workflowmini;
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.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class WorkflowMini extends SerializableObject {
14

15
  protected String id;
16

17
  @JsonDeserialize(using = WorkflowMiniTypeField.WorkflowMiniTypeFieldDeserializer.class)
18
  @JsonSerialize(using = WorkflowMiniTypeField.WorkflowMiniTypeFieldSerializer.class)
19
  protected EnumWrapper<WorkflowMiniTypeField> type;
20

21
  protected String name;
22

23
  protected String description;
24

25
  @JsonProperty("is_enabled")
26
  protected Boolean isEnabled;
27

28
  public WorkflowMini() {
29
    super();
1✔
30
  }
1✔
31

32
  protected WorkflowMini(Builder builder) {
33
    super();
×
34
    this.id = builder.id;
×
35
    this.type = builder.type;
×
36
    this.name = builder.name;
×
UNCOV
37
    this.description = builder.description;
×
UNCOV
38
    this.isEnabled = builder.isEnabled;
×
UNCOV
39
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
40
  }
×
41

42
  public String getId() {
43
    return id;
1✔
44
  }
45

46
  public EnumWrapper<WorkflowMiniTypeField> getType() {
47
    return type;
1✔
48
  }
49

50
  public String getName() {
51
    return name;
×
52
  }
53

54
  public String getDescription() {
UNCOV
55
    return description;
×
56
  }
57

58
  public Boolean getIsEnabled() {
59
    return isEnabled;
1✔
60
  }
61

62
  @Override
63
  public boolean equals(Object o) {
64
    if (this == o) {
×
UNCOV
65
      return true;
×
66
    }
67
    if (o == null || getClass() != o.getClass()) {
×
68
      return false;
×
69
    }
70
    WorkflowMini casted = (WorkflowMini) o;
×
71
    return Objects.equals(id, casted.id)
×
UNCOV
72
        && Objects.equals(type, casted.type)
×
UNCOV
73
        && Objects.equals(name, casted.name)
×
UNCOV
74
        && Objects.equals(description, casted.description)
×
UNCOV
75
        && Objects.equals(isEnabled, casted.isEnabled);
×
76
  }
77

78
  @Override
79
  public int hashCode() {
UNCOV
80
    return Objects.hash(id, type, name, description, isEnabled);
×
81
  }
82

83
  @Override
84
  public String toString() {
UNCOV
85
    return "WorkflowMini{"
×
86
        + "id='"
87
        + id
88
        + '\''
89
        + ", "
90
        + "type='"
91
        + type
92
        + '\''
93
        + ", "
94
        + "name='"
95
        + name
96
        + '\''
97
        + ", "
98
        + "description='"
99
        + description
100
        + '\''
101
        + ", "
102
        + "isEnabled='"
103
        + isEnabled
104
        + '\''
105
        + "}";
106
  }
107

UNCOV
108
  public static class Builder extends NullableFieldTracker {
×
109

110
    protected String id;
111

112
    protected EnumWrapper<WorkflowMiniTypeField> type;
113

114
    protected String name;
115

116
    protected String description;
117

118
    protected Boolean isEnabled;
119

120
    public Builder id(String id) {
UNCOV
121
      this.id = id;
×
122
      return this;
×
123
    }
124

125
    public Builder type(WorkflowMiniTypeField type) {
UNCOV
126
      this.type = new EnumWrapper<WorkflowMiniTypeField>(type);
×
127
      return this;
×
128
    }
129

130
    public Builder type(EnumWrapper<WorkflowMiniTypeField> type) {
UNCOV
131
      this.type = type;
×
132
      return this;
×
133
    }
134

135
    public Builder name(String name) {
UNCOV
136
      this.name = name;
×
137
      return this;
×
138
    }
139

140
    public Builder description(String description) {
UNCOV
141
      this.description = description;
×
142
      return this;
×
143
    }
144

145
    public Builder isEnabled(Boolean isEnabled) {
UNCOV
146
      this.isEnabled = isEnabled;
×
147
      return this;
×
148
    }
149

150
    public WorkflowMini build() {
UNCOV
151
      return new WorkflowMini(this);
×
152
    }
153
  }
154
}
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