• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

68 of 82 new or added lines in 2 files covered. (82.93%)

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

0.36 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
  @JsonProperty("folder_id")
12
  protected final String folderId;
13

14
  @JsonProperty("file_size")
15
  protected final long fileSize;
16

17
  @JsonProperty("file_name")
18
  protected final String fileName;
19

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

30
  public String getFolderId() {
31
    return folderId;
1✔
32
  }
33

34
  public long getFileSize() {
35
    return fileSize;
1✔
36
  }
37

38
  public String getFileName() {
39
    return fileName;
1✔
40
  }
41

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

56
  @Override
57
  public int hashCode() {
UNCOV
58
    return Objects.hash(folderId, fileSize, fileName);
×
59
  }
60

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