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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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
/** Mini representation of a group, including id and name of group. */
13
@JsonFilter("nullablePropertyFilter")
14
public class GroupMini extends GroupBase {
15

16
  /** The name of the group. */
17
  protected String name;
18

19
  /** The type of the group. */
20
  @JsonDeserialize(using = GroupMiniGroupTypeField.GroupMiniGroupTypeFieldDeserializer.class)
21
  @JsonSerialize(using = GroupMiniGroupTypeField.GroupMiniGroupTypeFieldSerializer.class)
22
  @JsonProperty("group_type")
23
  protected EnumWrapper<GroupMiniGroupTypeField> groupType;
24

25
  public GroupMini(@JsonProperty("id") String id) {
26
    super(id);
1✔
27
  }
1✔
28

29
  protected GroupMini(Builder builder) {
30
    super(builder);
×
31
    this.name = builder.name;
×
32
    this.groupType = builder.groupType;
×
33
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
34
  }
×
35

36
  public String getName() {
37
    return name;
1✔
38
  }
39

40
  public EnumWrapper<GroupMiniGroupTypeField> getGroupType() {
41
    return groupType;
×
42
  }
43

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

59
  @Override
60
  public int hashCode() {
61
    return Objects.hash(id, type, name, groupType);
×
62
  }
63

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

85
  public static class Builder extends GroupBase.Builder {
86

87
    protected String name;
88

89
    protected EnumWrapper<GroupMiniGroupTypeField> groupType;
90

91
    public Builder(String id) {
92
      super(id);
×
93
    }
×
94

95
    public Builder name(String name) {
96
      this.name = name;
×
97
      return this;
×
98
    }
99

100
    public Builder groupType(GroupMiniGroupTypeField groupType) {
101
      this.groupType = new EnumWrapper<GroupMiniGroupTypeField>(groupType);
×
102
      return this;
×
103
    }
104

105
    public Builder groupType(EnumWrapper<GroupMiniGroupTypeField> groupType) {
106
      this.groupType = groupType;
×
107
      return this;
×
108
    }
109

110
    @Override
111
    public Builder type(GroupBaseTypeField type) {
112
      this.type = new EnumWrapper<GroupBaseTypeField>(type);
×
113
      return this;
×
114
    }
115

116
    @Override
117
    public Builder type(EnumWrapper<GroupBaseTypeField> type) {
118
      this.type = type;
×
119
      return this;
×
120
    }
121

122
    public GroupMini build() {
123
      return new GroupMini(this);
×
124
    }
125
  }
126
}
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