• 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

8.89
/src/main/java/com/box/sdkgen/schemas/filemini/FileMini.java
1
package com.box.sdkgen.schemas.filemini;
2

3
import com.box.sdkgen.schemas.filebase.FileBase;
4
import com.box.sdkgen.schemas.filebase.FileBaseTypeField;
5
import com.box.sdkgen.schemas.fileversionmini.FileVersionMini;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import java.util.Objects;
10

11
/** A mini representation of a file, used when nested under another resource. */
12
@JsonFilter("nullablePropertyFilter")
13
public class FileMini extends FileBase {
14

15
  @JsonProperty("sequence_id")
16
  protected String sequenceId;
17

18
  /** The name of the file. */
19
  protected String name;
20

21
  /**
22
   * The SHA1 hash of the file. This can be used to compare the contents of a file on Box with a
23
   * local file.
24
   */
25
  protected String sha1;
26

27
  @JsonProperty("file_version")
28
  protected FileVersionMini fileVersion;
29

30
  public FileMini(@JsonProperty("id") String id) {
31
    super(id);
1✔
32
  }
1✔
33

34
  protected FileMini(Builder builder) {
35
    super(builder);
×
36
    this.sequenceId = builder.sequenceId;
×
37
    this.name = builder.name;
×
38
    this.sha1 = builder.sha1;
×
39
    this.fileVersion = builder.fileVersion;
×
40
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
41
  }
×
42

43
  public String getSequenceId() {
44
    return sequenceId;
1✔
45
  }
46

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

51
  public String getSha1() {
52
    return sha1;
×
53
  }
54

55
  public FileVersionMini getFileVersion() {
56
    return fileVersion;
×
57
  }
58

59
  @Override
60
  public boolean equals(Object o) {
61
    if (this == o) {
×
62
      return true;
×
63
    }
64
    if (o == null || getClass() != o.getClass()) {
×
65
      return false;
×
66
    }
67
    FileMini casted = (FileMini) o;
×
68
    return Objects.equals(id, casted.id)
×
69
        && Objects.equals(etag, casted.etag)
×
70
        && Objects.equals(type, casted.type)
×
71
        && Objects.equals(sequenceId, casted.sequenceId)
×
72
        && Objects.equals(name, casted.name)
×
73
        && Objects.equals(sha1, casted.sha1)
×
74
        && Objects.equals(fileVersion, casted.fileVersion);
×
75
  }
76

77
  @Override
78
  public int hashCode() {
79
    return Objects.hash(id, etag, type, sequenceId, name, sha1, fileVersion);
×
80
  }
81

82
  @Override
83
  public String toString() {
84
    return "FileMini{"
×
85
        + "id='"
86
        + id
87
        + '\''
88
        + ", "
89
        + "etag='"
90
        + etag
91
        + '\''
92
        + ", "
93
        + "type='"
94
        + type
95
        + '\''
96
        + ", "
97
        + "sequenceId='"
98
        + sequenceId
99
        + '\''
100
        + ", "
101
        + "name='"
102
        + name
103
        + '\''
104
        + ", "
105
        + "sha1='"
106
        + sha1
107
        + '\''
108
        + ", "
109
        + "fileVersion='"
110
        + fileVersion
111
        + '\''
112
        + "}";
113
  }
114

115
  public static class Builder extends FileBase.Builder {
116

117
    protected String sequenceId;
118

119
    protected String name;
120

121
    protected String sha1;
122

123
    protected FileVersionMini fileVersion;
124

125
    public Builder(String id) {
126
      super(id);
×
127
    }
×
128

129
    public Builder sequenceId(String sequenceId) {
130
      this.sequenceId = sequenceId;
×
131
      return this;
×
132
    }
133

134
    public Builder name(String name) {
135
      this.name = name;
×
136
      return this;
×
137
    }
138

139
    public Builder sha1(String sha1) {
140
      this.sha1 = sha1;
×
141
      return this;
×
142
    }
143

144
    public Builder fileVersion(FileVersionMini fileVersion) {
145
      this.fileVersion = fileVersion;
×
146
      return this;
×
147
    }
148

149
    @Override
150
    public Builder etag(String etag) {
151
      this.etag = etag;
×
152
      this.markNullableFieldAsSet("etag");
×
153
      return this;
×
154
    }
155

156
    @Override
157
    public Builder type(FileBaseTypeField type) {
158
      this.type = new EnumWrapper<FileBaseTypeField>(type);
×
159
      return this;
×
160
    }
161

162
    @Override
163
    public Builder type(EnumWrapper<FileBaseTypeField> type) {
164
      this.type = type;
×
165
      return this;
×
166
    }
167

168
    public FileMini build() {
169
      return new FileMini(this);
×
170
    }
171
  }
172
}
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