• 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

21.43
/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
/** A base representation of a group. */
13
@JsonFilter("nullablePropertyFilter")
14
public class GroupBase extends SerializableObject {
15

16
  /** The unique identifier for this object. */
17
  protected final String id;
18

19
  /** The value will always be `group`. */
20
  @JsonDeserialize(using = GroupBaseTypeField.GroupBaseTypeFieldDeserializer.class)
21
  @JsonSerialize(using = GroupBaseTypeField.GroupBaseTypeFieldSerializer.class)
22
  protected EnumWrapper<GroupBaseTypeField> type;
23

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

30
  protected GroupBase(Builder builder) {
31
    super();
×
32
    this.id = builder.id;
×
33
    this.type = builder.type;
×
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
35
  }
×
36

37
  public String getId() {
38
    return id;
1✔
39
  }
40

41
  public EnumWrapper<GroupBaseTypeField> getType() {
42
    return type;
1✔
43
  }
44

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

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

62
  @Override
63
  public String toString() {
64
    return "GroupBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
65
  }
66

67
  public static class Builder extends NullableFieldTracker {
68

69
    protected final String id;
70

71
    protected EnumWrapper<GroupBaseTypeField> type;
72

73
    public Builder(String id) {
74
      super();
×
75
      this.id = id;
×
76
      this.type = new EnumWrapper<GroupBaseTypeField>(GroupBaseTypeField.GROUP);
×
77
    }
×
78

79
    public Builder type(GroupBaseTypeField type) {
80
      this.type = new EnumWrapper<GroupBaseTypeField>(type);
×
81
      return this;
×
82
    }
83

84
    public Builder type(EnumWrapper<GroupBaseTypeField> type) {
85
      this.type = type;
×
86
      return this;
×
87
    }
88

89
    public GroupBase build() {
90
      return new GroupBase(this);
×
91
    }
92
  }
93
}
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