• 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

29.41
/src/main/java/com/box/sdkgen/managers/uploads/UploadWithPreflightCheckHeaders.java
1
package com.box.sdkgen.managers.uploads;
2

3
import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
4

5
import java.util.Map;
6

7
public class UploadWithPreflightCheckHeaders {
8

9
  /**
10
   * An optional header containing the SHA1 hash of the file to ensure that the file was not
11
   * corrupted in transit.
12
   */
13
  public String contentMd5;
14

15
  /** Extra headers that will be included in the HTTP request. */
16
  public Map<String, String> extraHeaders;
17

18
  public UploadWithPreflightCheckHeaders() {
1✔
19
    this.extraHeaders = mapOf();
1✔
20
  }
1✔
21

22
  protected UploadWithPreflightCheckHeaders(Builder builder) {
×
23
    this.contentMd5 = builder.contentMd5;
×
24
    this.extraHeaders = builder.extraHeaders;
×
25
  }
×
26

27
  public String getContentMd5() {
28
    return contentMd5;
1✔
29
  }
30

31
  public Map<String, String> getExtraHeaders() {
32
    return extraHeaders;
1✔
33
  }
34

35
  public static class Builder {
36

37
    protected String contentMd5;
38

39
    protected Map<String, String> extraHeaders;
40

41
    public Builder() {
×
42
      this.extraHeaders = mapOf();
×
43
    }
×
44

45
    public Builder contentMd5(String contentMd5) {
46
      this.contentMd5 = contentMd5;
×
47
      return this;
×
48
    }
49

50
    public Builder extraHeaders(Map<String, String> extraHeaders) {
51
      this.extraHeaders = extraHeaders;
×
52
      return this;
×
53
    }
54

55
    public UploadWithPreflightCheckHeaders build() {
56
      return new UploadWithPreflightCheckHeaders(this);
×
57
    }
58
  }
59
}
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