• 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

17.86
/src/main/java/com/box/sdkgen/schemas/groupbase/GroupBase.java
1
package com.box.sdkgen.schemas.groupbase;
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 GroupBase extends SerializableObject {
14

15
  protected final String id;
16

17
  @JsonDeserialize(using = GroupBaseTypeField.GroupBaseTypeFieldDeserializer.class)
18
  @JsonSerialize(using = GroupBaseTypeField.GroupBaseTypeFieldSerializer.class)
19
  protected EnumWrapper<GroupBaseTypeField> type;
20

21
  public GroupBase(@JsonProperty("id") String id) {
22
    super();
1✔
23
    this.id = id;
1✔
24
    this.type = new EnumWrapper<GroupBaseTypeField>(GroupBaseTypeField.GROUP);
1✔
25
  }
1✔
26

27
  protected GroupBase(Builder builder) {
28
    super();
×
UNCOV
29
    this.id = builder.id;
×
UNCOV
30
    this.type = builder.type;
×
UNCOV
31
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
32
  }
×
33

34
  public String getId() {
35
    return id;
1✔
36
  }
37

38
  public EnumWrapper<GroupBaseTypeField> getType() {
UNCOV
39
    return type;
×
40
  }
41

42
  @Override
43
  public boolean equals(Object o) {
44
    if (this == o) {
×
UNCOV
45
      return true;
×
46
    }
47
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
48
      return false;
×
49
    }
UNCOV
50
    GroupBase casted = (GroupBase) o;
×
UNCOV
51
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
52
  }
53

54
  @Override
55
  public int hashCode() {
UNCOV
56
    return Objects.hash(id, type);
×
57
  }
58

59
  @Override
60
  public String toString() {
UNCOV
61
    return "GroupBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
62
  }
63

64
  public static class Builder extends NullableFieldTracker {
65

66
    protected final String id;
67

68
    protected EnumWrapper<GroupBaseTypeField> type;
69

70
    public Builder(String id) {
UNCOV
71
      super();
×
72
      this.id = id;
×
73
      this.type = new EnumWrapper<GroupBaseTypeField>(GroupBaseTypeField.GROUP);
×
UNCOV
74
    }
×
75

76
    public Builder type(GroupBaseTypeField type) {
77
      this.type = new EnumWrapper<GroupBaseTypeField>(type);
×
78
      return this;
×
79
    }
80

81
    public Builder type(EnumWrapper<GroupBaseTypeField> type) {
82
      this.type = type;
×
UNCOV
83
      return this;
×
84
    }
85

86
    public GroupBase build() {
UNCOV
87
      return new GroupBase(this);
×
88
    }
89
  }
90
}
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