• 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

85.19
/src/main/java/com/box/sdkgen/networking/fetchoptions/MultipartItem.java
1
package com.box.sdkgen.networking.fetchoptions;
2

3
import com.fasterxml.jackson.databind.JsonNode;
4
import java.io.InputStream;
5

6
/** Multipart item for multipart data */
7
public class MultipartItem {
8

9
  /** Name of the part */
10
  public final String partName;
11

12
  /** Data of the part */
13
  public JsonNode data;
14

15
  /** File stream of the part */
16
  public InputStream fileStream;
17

18
  /** File name of the part */
19
  public String fileName;
20

21
  /** Content type of the part */
22
  public String contentType;
23

24
  public MultipartItem(String partName) {
×
25
    this.partName = partName;
×
26
  }
×
27

28
  protected MultipartItem(Builder builder) {
1✔
29
    this.partName = builder.partName;
1✔
30
    this.data = builder.data;
1✔
31
    this.fileStream = builder.fileStream;
1✔
32
    this.fileName = builder.fileName;
1✔
33
    this.contentType = builder.contentType;
1✔
34
  }
1✔
35

36
  public String getPartName() {
37
    return partName;
1✔
38
  }
39

40
  public JsonNode getData() {
41
    return data;
1✔
42
  }
43

44
  public InputStream getFileStream() {
45
    return fileStream;
1✔
46
  }
47

48
  public String getFileName() {
49
    return fileName;
1✔
50
  }
51

52
  public String getContentType() {
53
    return contentType;
×
54
  }
55

56
  public static class Builder {
57

58
    protected final String partName;
59

60
    protected JsonNode data;
61

62
    protected InputStream fileStream;
63

64
    protected String fileName;
65

66
    protected String contentType;
67

68
    public Builder(String partName) {
1✔
69
      this.partName = partName;
1✔
70
    }
1✔
71

72
    public Builder data(JsonNode data) {
73
      this.data = data;
1✔
74
      return this;
1✔
75
    }
76

77
    public Builder fileStream(InputStream fileStream) {
78
      this.fileStream = fileStream;
1✔
79
      return this;
1✔
80
    }
81

82
    public Builder fileName(String fileName) {
83
      this.fileName = fileName;
1✔
84
      return this;
1✔
85
    }
86

87
    public Builder contentType(String contentType) {
88
      this.contentType = contentType;
1✔
89
      return this;
1✔
90
    }
91

92
    public MultipartItem build() {
93
      return new MultipartItem(this);
1✔
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