• 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.68
/src/main/java/com/box/sdkgen/schemas/userfull/UserFullEnterpriseField.java
1
package com.box.sdkgen.schemas.userfull;
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.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class UserFullEnterpriseField extends SerializableObject {
13

14
  /** The unique identifier for this enterprise. */
15
  protected String id;
16

17
  /** The value will always be `enterprise`. */
18
  @JsonDeserialize(
19
      using = UserFullEnterpriseTypeField.UserFullEnterpriseTypeFieldDeserializer.class)
20
  @JsonSerialize(using = UserFullEnterpriseTypeField.UserFullEnterpriseTypeFieldSerializer.class)
21
  protected EnumWrapper<UserFullEnterpriseTypeField> type;
22

23
  /** The name of the enterprise. */
24
  protected String name;
25

26
  public UserFullEnterpriseField() {
27
    super();
1✔
28
  }
1✔
29

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

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

42
  public EnumWrapper<UserFullEnterpriseTypeField> getType() {
43
    return type;
×
44
  }
45

46
  public String getName() {
47
    return name;
×
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
    UserFullEnterpriseField casted = (UserFullEnterpriseField) o;
×
59
    return Objects.equals(id, casted.id)
×
60
        && Objects.equals(type, casted.type)
×
61
        && Objects.equals(name, casted.name);
×
62
  }
63

64
  @Override
65
  public int hashCode() {
66
    return Objects.hash(id, type, name);
×
67
  }
68

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

86
  public static class Builder extends NullableFieldTracker {
×
87

88
    protected String id;
89

90
    protected EnumWrapper<UserFullEnterpriseTypeField> type;
91

92
    protected String name;
93

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

99
    public Builder type(UserFullEnterpriseTypeField type) {
100
      this.type = new EnumWrapper<UserFullEnterpriseTypeField>(type);
×
101
      return this;
×
102
    }
103

104
    public Builder type(EnumWrapper<UserFullEnterpriseTypeField> type) {
105
      this.type = type;
×
106
      return this;
×
107
    }
108

109
    public Builder name(String name) {
110
      this.name = name;
×
111
      return this;
×
112
    }
113

114
    public UserFullEnterpriseField build() {
115
      return new UserFullEnterpriseField(this);
×
116
    }
117
  }
118
}
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