• 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

84.21
/src/main/java/com/box/sdkgen/managers/avatars/CreateUserAvatarRequestBody.java
1
package com.box.sdkgen.managers.avatars;
2

3
import java.io.InputStream;
4

5
public class CreateUserAvatarRequestBody {
6

7
  /**
8
   * The image file to be uploaded to Box. Accepted file extensions are `.jpg` or `.png`. The
9
   * maximum file size is 1MB.
10
   */
11
  public final InputStream pic;
12

13
  public String picFileName;
14

15
  public String picContentType;
16

17
  public CreateUserAvatarRequestBody(InputStream pic) {
×
18
    this.pic = pic;
×
19
  }
×
20

21
  protected CreateUserAvatarRequestBody(Builder builder) {
1✔
22
    this.pic = builder.pic;
1✔
23
    this.picFileName = builder.picFileName;
1✔
24
    this.picContentType = builder.picContentType;
1✔
25
  }
1✔
26

27
  public InputStream getPic() {
28
    return pic;
1✔
29
  }
30

31
  public String getPicFileName() {
32
    return picFileName;
1✔
33
  }
34

35
  public String getPicContentType() {
36
    return picContentType;
1✔
37
  }
38

39
  public static class Builder {
40

41
    protected final InputStream pic;
42

43
    protected String picFileName;
44

45
    protected String picContentType;
46

47
    public Builder(InputStream pic) {
1✔
48
      this.pic = pic;
1✔
49
    }
1✔
50

51
    public Builder picFileName(String picFileName) {
52
      this.picFileName = picFileName;
1✔
53
      return this;
1✔
54
    }
55

56
    public Builder picContentType(String picContentType) {
57
      this.picContentType = picContentType;
1✔
58
      return this;
1✔
59
    }
60

61
    public CreateUserAvatarRequestBody build() {
62
      return new CreateUserAvatarRequestBody(this);
1✔
63
    }
64
  }
65
}
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