• 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

17.86
/src/main/java/com/box/sdkgen/schemas/fileversionbase/FileVersionBase.java
1
package com.box.sdkgen.schemas.fileversionbase;
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.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
/**
13
 * The bare basic representation of a file version, the minimal amount of fields returned when using
14
 * the `fields` query parameter.
15
 */
16
@JsonFilter("nullablePropertyFilter")
17
public class FileVersionBase extends SerializableObject {
18

19
  /** The unique identifier that represent a file version. */
20
  protected final String id;
21

22
  /** The value will always be `file_version`. */
23
  @JsonDeserialize(using = FileVersionBaseTypeField.FileVersionBaseTypeFieldDeserializer.class)
24
  @JsonSerialize(using = FileVersionBaseTypeField.FileVersionBaseTypeFieldSerializer.class)
25
  protected EnumWrapper<FileVersionBaseTypeField> type;
26

27
  public FileVersionBase(@JsonProperty("id") String id) {
28
    super();
1✔
29
    this.id = id;
1✔
30
    this.type = new EnumWrapper<FileVersionBaseTypeField>(FileVersionBaseTypeField.FILE_VERSION);
1✔
31
  }
1✔
32

33
  protected FileVersionBase(Builder builder) {
34
    super();
×
35
    this.id = builder.id;
×
36
    this.type = builder.type;
×
37
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
38
  }
×
39

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

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

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

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

65
  @Override
66
  public String toString() {
67
    return "FileVersionBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
68
  }
69

70
  public static class Builder extends NullableFieldTracker {
71

72
    protected final String id;
73

74
    protected EnumWrapper<FileVersionBaseTypeField> type;
75

76
    public Builder(String id) {
77
      super();
×
78
      this.id = id;
×
79
      this.type = new EnumWrapper<FileVersionBaseTypeField>(FileVersionBaseTypeField.FILE_VERSION);
×
80
    }
×
81

82
    public Builder type(FileVersionBaseTypeField type) {
83
      this.type = new EnumWrapper<FileVersionBaseTypeField>(type);
×
84
      return this;
×
85
    }
86

87
    public Builder type(EnumWrapper<FileVersionBaseTypeField> type) {
88
      this.type = type;
×
89
      return this;
×
90
    }
91

92
    public FileVersionBase build() {
93
      return new FileVersionBase(this);
×
94
    }
95
  }
96
}
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