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

box / box-java-sdk-gen / #293

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#293

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%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

12.9
/src/main/java/com/box/sdkgen/schemas/webhookmini/WebhookMini.java
1
package com.box.sdkgen.schemas.webhookmini;
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 WebhookMini extends SerializableObject {
13

14
  protected String id;
15

16
  @JsonDeserialize(using = WebhookMiniTypeField.WebhookMiniTypeFieldDeserializer.class)
17
  @JsonSerialize(using = WebhookMiniTypeField.WebhookMiniTypeFieldSerializer.class)
18
  protected EnumWrapper<WebhookMiniTypeField> type;
19

20
  protected WebhookMiniTargetField target;
21

22
  public WebhookMini() {
23
    super();
1✔
24
  }
1✔
25

26
  protected WebhookMini(Builder builder) {
27
    super();
×
28
    this.id = builder.id;
×
UNCOV
29
    this.type = builder.type;
×
UNCOV
30
    this.target = builder.target;
×
UNCOV
31
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
32
  }
×
33

34
  public String getId() {
35
    return id;
1✔
36
  }
37

38
  public EnumWrapper<WebhookMiniTypeField> getType() {
UNCOV
39
    return type;
×
40
  }
41

42
  public WebhookMiniTargetField getTarget() {
43
    return target;
1✔
44
  }
45

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

60
  @Override
61
  public int hashCode() {
UNCOV
62
    return Objects.hash(id, type, target);
×
63
  }
64

65
  @Override
66
  public String toString() {
UNCOV
67
    return "WebhookMini{"
×
68
        + "id='"
69
        + id
70
        + '\''
71
        + ", "
72
        + "type='"
73
        + type
74
        + '\''
75
        + ", "
76
        + "target='"
77
        + target
78
        + '\''
79
        + "}";
80
  }
81

UNCOV
82
  public static class Builder extends NullableFieldTracker {
×
83

84
    protected String id;
85

86
    protected EnumWrapper<WebhookMiniTypeField> type;
87

88
    protected WebhookMiniTargetField target;
89

90
    public Builder id(String id) {
UNCOV
91
      this.id = id;
×
92
      return this;
×
93
    }
94

95
    public Builder type(WebhookMiniTypeField type) {
UNCOV
96
      this.type = new EnumWrapper<WebhookMiniTypeField>(type);
×
97
      return this;
×
98
    }
99

100
    public Builder type(EnumWrapper<WebhookMiniTypeField> type) {
UNCOV
101
      this.type = type;
×
102
      return this;
×
103
    }
104

105
    public Builder target(WebhookMiniTargetField target) {
UNCOV
106
      this.target = target;
×
107
      return this;
×
108
    }
109

110
    public WebhookMini build() {
UNCOV
111
      return new WebhookMini(this);
×
112
    }
113
  }
114
}
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