• 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

6.45
/src/main/java/com/box/sdkgen/schemas/termsofservice/TermsOfServiceEnterpriseField.java
1
package com.box.sdkgen.schemas.termsofservice;
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 TermsOfServiceEnterpriseField 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 = TermsOfServiceEnterpriseTypeField.TermsOfServiceEnterpriseTypeFieldDeserializer.class)
20
  @JsonSerialize(
21
      using = TermsOfServiceEnterpriseTypeField.TermsOfServiceEnterpriseTypeFieldSerializer.class)
22
  protected EnumWrapper<TermsOfServiceEnterpriseTypeField> type;
23

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

27
  public TermsOfServiceEnterpriseField() {
28
    super();
1✔
29
  }
1✔
30

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

39
  public String getId() {
40
    return id;
×
41
  }
42

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

47
  public String getName() {
48
    return name;
×
49
  }
50

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

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

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

87
  public static class Builder extends NullableFieldTracker {
×
88

89
    protected String id;
90

91
    protected EnumWrapper<TermsOfServiceEnterpriseTypeField> type;
92

93
    protected String name;
94

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

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

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

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

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