• 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

5.13
/src/main/java/com/box/sdkgen/schemas/group/Group.java
1
package com.box.sdkgen.schemas.group;
2

3
import com.box.sdkgen.internal.utils.DateTimeUtils;
4
import com.box.sdkgen.schemas.groupbase.GroupBaseTypeField;
5
import com.box.sdkgen.schemas.groupmini.GroupMini;
6
import com.box.sdkgen.schemas.groupmini.GroupMiniGroupTypeField;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.time.OffsetDateTime;
13
import java.util.Objects;
14

15
/** A standard representation of a group, as returned from any group API endpoints by default. */
16
@JsonFilter("nullablePropertyFilter")
17
public class Group extends GroupMini {
18

19
  /** When the group object was created. */
20
  @JsonProperty("created_at")
21
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
22
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
23
  protected OffsetDateTime createdAt;
24

25
  /** When the group object was last modified. */
26
  @JsonProperty("modified_at")
27
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
28
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
29
  protected OffsetDateTime modifiedAt;
30

31
  public Group(@JsonProperty("id") String id) {
32
    super(id);
1✔
33
  }
1✔
34

35
  protected Group(Builder builder) {
36
    super(builder);
×
37
    this.createdAt = builder.createdAt;
×
38
    this.modifiedAt = builder.modifiedAt;
×
39
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
40
  }
×
41

42
  public OffsetDateTime getCreatedAt() {
43
    return createdAt;
×
44
  }
45

46
  public OffsetDateTime getModifiedAt() {
47
    return modifiedAt;
×
48
  }
49

50
  @Override
51
  public boolean equals(Object o) {
52
    if (this == o) {
×
53
      return true;
×
54
    }
55
    if (o == null || getClass() != o.getClass()) {
×
56
      return false;
×
57
    }
58
    Group casted = (Group) o;
×
59
    return Objects.equals(id, casted.id)
×
60
        && Objects.equals(type, casted.type)
×
61
        && Objects.equals(name, casted.name)
×
62
        && Objects.equals(groupType, casted.groupType)
×
63
        && Objects.equals(createdAt, casted.createdAt)
×
64
        && Objects.equals(modifiedAt, casted.modifiedAt);
×
65
  }
66

67
  @Override
68
  public int hashCode() {
69
    return Objects.hash(id, type, name, groupType, createdAt, modifiedAt);
×
70
  }
71

72
  @Override
73
  public String toString() {
74
    return "Group{"
×
75
        + "id='"
76
        + id
77
        + '\''
78
        + ", "
79
        + "type='"
80
        + type
81
        + '\''
82
        + ", "
83
        + "name='"
84
        + name
85
        + '\''
86
        + ", "
87
        + "groupType='"
88
        + groupType
89
        + '\''
90
        + ", "
91
        + "createdAt='"
92
        + createdAt
93
        + '\''
94
        + ", "
95
        + "modifiedAt='"
96
        + modifiedAt
97
        + '\''
98
        + "}";
99
  }
100

101
  public static class Builder extends GroupMini.Builder {
102

103
    protected OffsetDateTime createdAt;
104

105
    protected OffsetDateTime modifiedAt;
106

107
    public Builder(String id) {
108
      super(id);
×
109
    }
×
110

111
    public Builder createdAt(OffsetDateTime createdAt) {
112
      this.createdAt = createdAt;
×
113
      return this;
×
114
    }
115

116
    public Builder modifiedAt(OffsetDateTime modifiedAt) {
117
      this.modifiedAt = modifiedAt;
×
118
      return this;
×
119
    }
120

121
    @Override
122
    public Builder type(GroupBaseTypeField type) {
123
      this.type = new EnumWrapper<GroupBaseTypeField>(type);
×
124
      return this;
×
125
    }
126

127
    @Override
128
    public Builder type(EnumWrapper<GroupBaseTypeField> type) {
129
      this.type = type;
×
130
      return this;
×
131
    }
132

133
    @Override
134
    public Builder name(String name) {
135
      this.name = name;
×
136
      return this;
×
137
    }
138

139
    @Override
140
    public Builder groupType(GroupMiniGroupTypeField groupType) {
141
      this.groupType = new EnumWrapper<GroupMiniGroupTypeField>(groupType);
×
142
      return this;
×
143
    }
144

145
    @Override
146
    public Builder groupType(EnumWrapper<GroupMiniGroupTypeField> groupType) {
147
      this.groupType = groupType;
×
148
      return this;
×
149
    }
150

151
    public Group build() {
152
      return new Group(this);
×
153
    }
154
  }
155
}
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