• 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

52.0
/src/main/java/com/box/sdkgen/managers/fileversions/PromoteFileVersionRequestBody.java
1
package com.box.sdkgen.managers.fileversions;
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 PromoteFileVersionRequestBody extends SerializableObject {
13

14
  /** The file version ID. */
15
  protected String id;
16

17
  /** The type to promote. */
18
  @JsonDeserialize(
19
      using =
20
          PromoteFileVersionRequestBodyTypeField.PromoteFileVersionRequestBodyTypeFieldDeserializer
21
              .class)
22
  @JsonSerialize(
23
      using =
24
          PromoteFileVersionRequestBodyTypeField.PromoteFileVersionRequestBodyTypeFieldSerializer
25
              .class)
26
  protected EnumWrapper<PromoteFileVersionRequestBodyTypeField> type;
27

28
  public PromoteFileVersionRequestBody() {
29
    super();
×
30
  }
×
31

32
  protected PromoteFileVersionRequestBody(Builder builder) {
33
    super();
1✔
34
    this.id = builder.id;
1✔
35
    this.type = builder.type;
1✔
36
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
37
  }
1✔
38

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

43
  public EnumWrapper<PromoteFileVersionRequestBodyTypeField> getType() {
44
    return type;
1✔
45
  }
46

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

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

64
  @Override
65
  public String toString() {
66
    return "PromoteFileVersionRequestBody{"
×
67
        + "id='"
68
        + id
69
        + '\''
70
        + ", "
71
        + "type='"
72
        + type
73
        + '\''
74
        + "}";
75
  }
76

77
  public static class Builder extends NullableFieldTracker {
1✔
78

79
    protected String id;
80

81
    protected EnumWrapper<PromoteFileVersionRequestBodyTypeField> type;
82

83
    public Builder id(String id) {
84
      this.id = id;
1✔
85
      return this;
1✔
86
    }
87

88
    public Builder type(PromoteFileVersionRequestBodyTypeField type) {
89
      this.type = new EnumWrapper<PromoteFileVersionRequestBodyTypeField>(type);
1✔
90
      return this;
1✔
91
    }
92

93
    public Builder type(EnumWrapper<PromoteFileVersionRequestBodyTypeField> type) {
94
      this.type = type;
×
95
      return this;
×
96
    }
97

98
    public PromoteFileVersionRequestBody build() {
99
      return new PromoteFileVersionRequestBody(this);
1✔
100
    }
101
  }
102
}
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