• 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

9.09
/src/main/java/com/box/sdkgen/schemas/groupmini/GroupMini.java
1
package com.box.sdkgen.schemas.groupmini;
2

3
import com.box.sdkgen.schemas.groupbase.GroupBase;
4
import com.box.sdkgen.schemas.groupbase.GroupBaseTypeField;
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 GroupMini extends GroupBase {
14

15
  protected String name;
16

17
  @JsonDeserialize(using = GroupMiniGroupTypeField.GroupMiniGroupTypeFieldDeserializer.class)
18
  @JsonSerialize(using = GroupMiniGroupTypeField.GroupMiniGroupTypeFieldSerializer.class)
19
  @JsonProperty("group_type")
20
  protected EnumWrapper<GroupMiniGroupTypeField> groupType;
21

22
  public GroupMini(@JsonProperty("id") String id) {
23
    super(id);
1✔
24
  }
1✔
25

26
  protected GroupMini(Builder builder) {
27
    super(builder);
×
28
    this.name = builder.name;
×
UNCOV
29
    this.groupType = builder.groupType;
×
UNCOV
30
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
31
  }
×
32

33
  public String getName() {
34
    return name;
1✔
35
  }
36

37
  public EnumWrapper<GroupMiniGroupTypeField> getGroupType() {
UNCOV
38
    return groupType;
×
39
  }
40

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

56
  @Override
57
  public int hashCode() {
UNCOV
58
    return Objects.hash(id, type, name, groupType);
×
59
  }
60

61
  @Override
62
  public String toString() {
UNCOV
63
    return "GroupMini{"
×
64
        + "id='"
65
        + id
66
        + '\''
67
        + ", "
68
        + "type='"
69
        + type
70
        + '\''
71
        + ", "
72
        + "name='"
73
        + name
74
        + '\''
75
        + ", "
76
        + "groupType='"
77
        + groupType
78
        + '\''
79
        + "}";
80
  }
81

82
  public static class Builder extends GroupBase.Builder {
83

84
    protected String name;
85

86
    protected EnumWrapper<GroupMiniGroupTypeField> groupType;
87

88
    public Builder(String id) {
UNCOV
89
      super(id);
×
90
    }
×
91

92
    public Builder name(String name) {
UNCOV
93
      this.name = name;
×
UNCOV
94
      return this;
×
95
    }
96

97
    public Builder groupType(GroupMiniGroupTypeField groupType) {
UNCOV
98
      this.groupType = new EnumWrapper<GroupMiniGroupTypeField>(groupType);
×
UNCOV
99
      return this;
×
100
    }
101

102
    public Builder groupType(EnumWrapper<GroupMiniGroupTypeField> groupType) {
UNCOV
103
      this.groupType = groupType;
×
UNCOV
104
      return this;
×
105
    }
106

107
    @Override
108
    public Builder type(GroupBaseTypeField type) {
UNCOV
109
      this.type = new EnumWrapper<GroupBaseTypeField>(type);
×
UNCOV
110
      return this;
×
111
    }
112

113
    @Override
114
    public Builder type(EnumWrapper<GroupBaseTypeField> type) {
UNCOV
115
      this.type = type;
×
UNCOV
116
      return this;
×
117
    }
118

119
    public GroupMini build() {
UNCOV
120
      return new GroupMini(this);
×
121
    }
122
  }
123
}
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