• 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

33.33
/src/main/java/com/box/sdkgen/managers/termsofservices/UpdateTermsOfServiceByIdRequestBody.java
1
package com.box.sdkgen.managers.termsofservices;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
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 UpdateTermsOfServiceByIdRequestBody extends SerializableObject {
13

14
  /** Whether this terms of service is active. */
15
  @JsonDeserialize(
16
      using =
17
          UpdateTermsOfServiceByIdRequestBodyStatusField
18
              .UpdateTermsOfServiceByIdRequestBodyStatusFieldDeserializer.class)
19
  @JsonSerialize(
20
      using =
21
          UpdateTermsOfServiceByIdRequestBodyStatusField
22
              .UpdateTermsOfServiceByIdRequestBodyStatusFieldSerializer.class)
23
  protected final EnumWrapper<UpdateTermsOfServiceByIdRequestBodyStatusField> status;
24

25
  /**
26
   * The terms of service text to display to users.
27
   *
28
   * <p>The text can be set to empty if the `status` is set to `disabled`.
29
   */
30
  protected final String text;
31

32
  public UpdateTermsOfServiceByIdRequestBody(
33
      UpdateTermsOfServiceByIdRequestBodyStatusField status, String text) {
34
    super();
1✔
35
    this.status = new EnumWrapper<UpdateTermsOfServiceByIdRequestBodyStatusField>(status);
1✔
36
    this.text = text;
1✔
37
  }
1✔
38

39
  public UpdateTermsOfServiceByIdRequestBody(
40
      @JsonProperty("status") EnumWrapper<UpdateTermsOfServiceByIdRequestBodyStatusField> status,
41
      @JsonProperty("text") String text) {
42
    super();
×
43
    this.status = status;
×
44
    this.text = text;
×
45
  }
×
46

47
  public EnumWrapper<UpdateTermsOfServiceByIdRequestBodyStatusField> getStatus() {
48
    return status;
1✔
49
  }
50

51
  public String getText() {
52
    return text;
1✔
53
  }
54

55
  @Override
56
  public boolean equals(Object o) {
57
    if (this == o) {
×
58
      return true;
×
59
    }
60
    if (o == null || getClass() != o.getClass()) {
×
61
      return false;
×
62
    }
63
    UpdateTermsOfServiceByIdRequestBody casted = (UpdateTermsOfServiceByIdRequestBody) o;
×
64
    return Objects.equals(status, casted.status) && Objects.equals(text, casted.text);
×
65
  }
66

67
  @Override
68
  public int hashCode() {
69
    return Objects.hash(status, text);
×
70
  }
71

72
  @Override
73
  public String toString() {
74
    return "UpdateTermsOfServiceByIdRequestBody{"
×
75
        + "status='"
76
        + status
77
        + '\''
78
        + ", "
79
        + "text='"
80
        + text
81
        + '\''
82
        + "}";
83
  }
84
}
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