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

box / box-java-sdk-gen / #290

24 Jun 2025 01:20PM UTC coverage: 35.757% (+0.1%) from 35.632%
#290

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

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

11777 existing lines in 624 files now uncovered.

16984 of 47499 relevant lines covered (35.76%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.0
/src/main/java/com/box/sdkgen/box/jwtauth/JwtConfigFile.java
1
package com.box.sdkgen.box.jwtauth;
2

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

9
@JsonFilter("nullablePropertyFilter")
10
public class JwtConfigFile extends SerializableObject {
11

12
  @JsonProperty("enterpriseID")
13
  protected String enterpriseId;
14

15
  @JsonProperty("userID")
16
  protected String userId;
17

18
  protected final JwtConfigAppSettings boxAppSettings;
19

20
  public JwtConfigFile(@JsonProperty("boxAppSettings") JwtConfigAppSettings boxAppSettings) {
21
    super();
1✔
22
    this.boxAppSettings = boxAppSettings;
1✔
23
  }
1✔
24

25
  protected JwtConfigFile(Builder builder) {
26
    super();
×
27
    this.enterpriseId = builder.enterpriseId;
×
UNCOV
28
    this.userId = builder.userId;
×
UNCOV
29
    this.boxAppSettings = builder.boxAppSettings;
×
UNCOV
30
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
31
  }
×
32

33
  public String getEnterpriseId() {
34
    return enterpriseId;
1✔
35
  }
36

37
  public String getUserId() {
38
    return userId;
1✔
39
  }
40

41
  public JwtConfigAppSettings getBoxAppSettings() {
42
    return boxAppSettings;
1✔
43
  }
44

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

59
  @Override
60
  public int hashCode() {
UNCOV
61
    return Objects.hash(enterpriseId, userId, boxAppSettings);
×
62
  }
63

64
  @Override
65
  public String toString() {
UNCOV
66
    return "JwtConfigFile{"
×
67
        + "enterpriseId='"
68
        + enterpriseId
69
        + '\''
70
        + ", "
71
        + "userId='"
72
        + userId
73
        + '\''
74
        + ", "
75
        + "boxAppSettings='"
76
        + boxAppSettings
77
        + '\''
78
        + "}";
79
  }
80

81
  public static class Builder extends NullableFieldTracker {
82

83
    protected String enterpriseId;
84

85
    protected String userId;
86

87
    protected final JwtConfigAppSettings boxAppSettings;
88

89
    public Builder(JwtConfigAppSettings boxAppSettings) {
90
      super();
×
91
      this.boxAppSettings = boxAppSettings;
×
UNCOV
92
    }
×
93

94
    public Builder enterpriseId(String enterpriseId) {
95
      this.enterpriseId = enterpriseId;
×
96
      return this;
×
97
    }
98

99
    public Builder userId(String userId) {
100
      this.userId = userId;
×
UNCOV
101
      return this;
×
102
    }
103

104
    public JwtConfigFile build() {
UNCOV
105
      return new JwtConfigFile(this);
×
106
    }
107
  }
108
}
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