• 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

44.44
/src/main/java/com/box/sdkgen/managers/chunkeduploads/CreateFileUploadSessionRequestBody.java
1
package com.box.sdkgen.managers.chunkeduploads;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.fasterxml.jackson.annotation.JsonFilter;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.Objects;
7

8
@JsonFilter("nullablePropertyFilter")
9
public class CreateFileUploadSessionRequestBody extends SerializableObject {
10

11
  /** The ID of the folder to upload the new file to. */
12
  @JsonProperty("folder_id")
13
  protected final String folderId;
14

15
  /** The total number of bytes of the file to be uploaded. */
16
  @JsonProperty("file_size")
17
  protected final long fileSize;
18

19
  /** The name of new file. */
20
  @JsonProperty("file_name")
21
  protected final String fileName;
22

23
  public CreateFileUploadSessionRequestBody(
24
      @JsonProperty("folder_id") String folderId,
25
      @JsonProperty("file_size") long fileSize,
26
      @JsonProperty("file_name") String fileName) {
27
    super();
1✔
28
    this.folderId = folderId;
1✔
29
    this.fileSize = fileSize;
1✔
30
    this.fileName = fileName;
1✔
31
  }
1✔
32

33
  public String getFolderId() {
34
    return folderId;
1✔
35
  }
36

37
  public long getFileSize() {
38
    return fileSize;
1✔
39
  }
40

41
  public String getFileName() {
42
    return fileName;
1✔
43
  }
44

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

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

64
  @Override
65
  public String toString() {
66
    return "CreateFileUploadSessionRequestBody{"
×
67
        + "folderId='"
68
        + folderId
69
        + '\''
70
        + ", "
71
        + "fileSize='"
72
        + fileSize
73
        + '\''
74
        + ", "
75
        + "fileName='"
76
        + fileName
77
        + '\''
78
        + "}";
79
  }
80
}
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