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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

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

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/workflowfull/WorkflowFull.java
1
package com.box.sdkgen.schemas.workflowfull;
2

3
import com.box.sdkgen.internal.utils.DateTimeUtils;
4
import com.box.sdkgen.schemas.userbase.UserBase;
5
import com.box.sdkgen.schemas.workflow.Workflow;
6
import com.box.sdkgen.schemas.workflow.WorkflowFlowsField;
7
import com.box.sdkgen.schemas.workflowmini.WorkflowMiniTypeField;
8
import com.box.sdkgen.serialization.json.EnumWrapper;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
12
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
13
import java.util.Date;
14
import java.util.List;
15
import java.util.Objects;
16

17
@JsonFilter("nullablePropertyFilter")
18
public class WorkflowFull extends Workflow {
19

20
  @JsonProperty("created_at")
21
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
22
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
23
  protected Date createdAt;
24

25
  @JsonProperty("modified_at")
26
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
27
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
28
  protected Date modifiedAt;
29

30
  @JsonProperty("created_by")
31
  protected UserBase createdBy;
32

33
  @JsonProperty("modified_by")
34
  protected UserBase modifiedBy;
35

36
  public WorkflowFull() {
UNCOV
37
    super();
×
UNCOV
38
  }
×
39

40
  protected WorkflowFull(Builder builder) {
41
    super(builder);
×
42
    this.createdAt = builder.createdAt;
×
43
    this.modifiedAt = builder.modifiedAt;
×
44
    this.createdBy = builder.createdBy;
×
UNCOV
45
    this.modifiedBy = builder.modifiedBy;
×
UNCOV
46
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
47
  }
×
48

49
  public Date getCreatedAt() {
UNCOV
50
    return createdAt;
×
51
  }
52

53
  public Date getModifiedAt() {
UNCOV
54
    return modifiedAt;
×
55
  }
56

57
  public UserBase getCreatedBy() {
UNCOV
58
    return createdBy;
×
59
  }
60

61
  public UserBase getModifiedBy() {
UNCOV
62
    return modifiedBy;
×
63
  }
64

65
  @Override
66
  public boolean equals(Object o) {
67
    if (this == o) {
×
68
      return true;
×
69
    }
70
    if (o == null || getClass() != o.getClass()) {
×
71
      return false;
×
72
    }
73
    WorkflowFull casted = (WorkflowFull) o;
×
74
    return Objects.equals(id, casted.id)
×
75
        && Objects.equals(type, casted.type)
×
76
        && Objects.equals(name, casted.name)
×
77
        && Objects.equals(description, casted.description)
×
78
        && Objects.equals(isEnabled, casted.isEnabled)
×
79
        && Objects.equals(flows, casted.flows)
×
80
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
81
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
UNCOV
82
        && Objects.equals(createdBy, casted.createdBy)
×
UNCOV
83
        && Objects.equals(modifiedBy, casted.modifiedBy);
×
84
  }
85

86
  @Override
87
  public int hashCode() {
UNCOV
88
    return Objects.hash(
×
89
        id,
90
        type,
91
        name,
92
        description,
93
        isEnabled,
94
        flows,
95
        createdAt,
96
        modifiedAt,
97
        createdBy,
98
        modifiedBy);
99
  }
100

101
  @Override
102
  public String toString() {
UNCOV
103
    return "WorkflowFull{"
×
104
        + "id='"
105
        + id
106
        + '\''
107
        + ", "
108
        + "type='"
109
        + type
110
        + '\''
111
        + ", "
112
        + "name='"
113
        + name
114
        + '\''
115
        + ", "
116
        + "description='"
117
        + description
118
        + '\''
119
        + ", "
120
        + "isEnabled='"
121
        + isEnabled
122
        + '\''
123
        + ", "
124
        + "flows='"
125
        + flows
126
        + '\''
127
        + ", "
128
        + "createdAt='"
129
        + createdAt
130
        + '\''
131
        + ", "
132
        + "modifiedAt='"
133
        + modifiedAt
134
        + '\''
135
        + ", "
136
        + "createdBy='"
137
        + createdBy
138
        + '\''
139
        + ", "
140
        + "modifiedBy='"
141
        + modifiedBy
142
        + '\''
143
        + "}";
144
  }
145

UNCOV
146
  public static class Builder extends Workflow.Builder {
×
147

148
    protected Date createdAt;
149

150
    protected Date modifiedAt;
151

152
    protected UserBase createdBy;
153

154
    protected UserBase modifiedBy;
155

156
    public Builder createdAt(Date createdAt) {
UNCOV
157
      this.createdAt = createdAt;
×
UNCOV
158
      return this;
×
159
    }
160

161
    public Builder modifiedAt(Date modifiedAt) {
UNCOV
162
      this.modifiedAt = modifiedAt;
×
UNCOV
163
      return this;
×
164
    }
165

166
    public Builder createdBy(UserBase createdBy) {
UNCOV
167
      this.createdBy = createdBy;
×
UNCOV
168
      return this;
×
169
    }
170

171
    public Builder modifiedBy(UserBase modifiedBy) {
UNCOV
172
      this.modifiedBy = modifiedBy;
×
UNCOV
173
      return this;
×
174
    }
175

176
    @Override
177
    public Builder id(String id) {
UNCOV
178
      this.id = id;
×
UNCOV
179
      return this;
×
180
    }
181

182
    @Override
183
    public Builder type(WorkflowMiniTypeField type) {
UNCOV
184
      this.type = new EnumWrapper<WorkflowMiniTypeField>(type);
×
UNCOV
185
      return this;
×
186
    }
187

188
    @Override
189
    public Builder type(EnumWrapper<WorkflowMiniTypeField> type) {
UNCOV
190
      this.type = type;
×
UNCOV
191
      return this;
×
192
    }
193

194
    @Override
195
    public Builder name(String name) {
UNCOV
196
      this.name = name;
×
UNCOV
197
      return this;
×
198
    }
199

200
    @Override
201
    public Builder description(String description) {
UNCOV
202
      this.description = description;
×
UNCOV
203
      return this;
×
204
    }
205

206
    @Override
207
    public Builder isEnabled(Boolean isEnabled) {
UNCOV
208
      this.isEnabled = isEnabled;
×
UNCOV
209
      return this;
×
210
    }
211

212
    @Override
213
    public Builder flows(List<WorkflowFlowsField> flows) {
UNCOV
214
      this.flows = flows;
×
UNCOV
215
      return this;
×
216
    }
217

218
    public WorkflowFull build() {
UNCOV
219
      return new WorkflowFull(this);
×
220
    }
221
  }
222
}
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