• 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

16.0
/src/main/java/com/box/sdkgen/schemas/enterprisebase/EnterpriseBase.java
1
package com.box.sdkgen.schemas.enterprisebase;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class EnterpriseBase extends SerializableObject {
13

14
  protected String id;
15

16
  @JsonDeserialize(using = EnterpriseBaseTypeField.EnterpriseBaseTypeFieldDeserializer.class)
17
  @JsonSerialize(using = EnterpriseBaseTypeField.EnterpriseBaseTypeFieldSerializer.class)
18
  protected EnumWrapper<EnterpriseBaseTypeField> type;
19

20
  public EnterpriseBase() {
21
    super();
1✔
22
  }
1✔
23

24
  protected EnterpriseBase(Builder builder) {
25
    super();
×
UNCOV
26
    this.id = builder.id;
×
UNCOV
27
    this.type = builder.type;
×
UNCOV
28
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
29
  }
×
30

31
  public String getId() {
32
    return id;
1✔
33
  }
34

35
  public EnumWrapper<EnterpriseBaseTypeField> getType() {
36
    return type;
1✔
37
  }
38

39
  @Override
40
  public boolean equals(Object o) {
41
    if (this == o) {
×
UNCOV
42
      return true;
×
43
    }
44
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
45
      return false;
×
46
    }
UNCOV
47
    EnterpriseBase casted = (EnterpriseBase) o;
×
UNCOV
48
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
49
  }
50

51
  @Override
52
  public int hashCode() {
UNCOV
53
    return Objects.hash(id, type);
×
54
  }
55

56
  @Override
57
  public String toString() {
UNCOV
58
    return "EnterpriseBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
59
  }
60

UNCOV
61
  public static class Builder extends NullableFieldTracker {
×
62

63
    protected String id;
64

65
    protected EnumWrapper<EnterpriseBaseTypeField> type;
66

67
    public Builder id(String id) {
UNCOV
68
      this.id = id;
×
69
      return this;
×
70
    }
71

72
    public Builder type(EnterpriseBaseTypeField type) {
UNCOV
73
      this.type = new EnumWrapper<EnterpriseBaseTypeField>(type);
×
74
      return this;
×
75
    }
76

77
    public Builder type(EnumWrapper<EnterpriseBaseTypeField> type) {
UNCOV
78
      this.type = type;
×
79
      return this;
×
80
    }
81

82
    public EnterpriseBase build() {
UNCOV
83
      return new EnterpriseBase(this);
×
84
    }
85
  }
86
}
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