• 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

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
/** Represents a configured webhook. */
12
@JsonFilter("nullablePropertyFilter")
13
public class WebhookMini extends SerializableObject {
14

15
  /** The unique identifier for this webhook. */
16
  protected String id;
17

18
  /** The value will always be `webhook`. */
19
  @JsonDeserialize(using = WebhookMiniTypeField.WebhookMiniTypeFieldDeserializer.class)
20
  @JsonSerialize(using = WebhookMiniTypeField.WebhookMiniTypeFieldSerializer.class)
21
  protected EnumWrapper<WebhookMiniTypeField> type;
22

23
  /** The item that will trigger the webhook. */
24
  protected WebhookMiniTargetField target;
25

26
  public WebhookMini() {
27
    super();
1✔
28
  }
1✔
29

30
  protected WebhookMini(Builder builder) {
31
    super();
×
32
    this.id = builder.id;
×
33
    this.type = builder.type;
×
34
    this.target = builder.target;
×
35
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
36
  }
×
37

38
  public String getId() {
39
    return id;
1✔
40
  }
41

42
  public EnumWrapper<WebhookMiniTypeField> getType() {
43
    return type;
×
44
  }
45

46
  public WebhookMiniTargetField getTarget() {
47
    return target;
1✔
48
  }
49

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

64
  @Override
65
  public int hashCode() {
66
    return Objects.hash(id, type, target);
×
67
  }
68

69
  @Override
70
  public String toString() {
71
    return "WebhookMini{"
×
72
        + "id='"
73
        + id
74
        + '\''
75
        + ", "
76
        + "type='"
77
        + type
78
        + '\''
79
        + ", "
80
        + "target='"
81
        + target
82
        + '\''
83
        + "}";
84
  }
85

86
  public static class Builder extends NullableFieldTracker {
×
87

88
    protected String id;
89

90
    protected EnumWrapper<WebhookMiniTypeField> type;
91

92
    protected WebhookMiniTargetField target;
93

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

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

104
    public Builder type(EnumWrapper<WebhookMiniTypeField> type) {
105
      this.type = type;
×
106
      return this;
×
107
    }
108

109
    public Builder target(WebhookMiniTargetField target) {
110
      this.target = target;
×
111
      return this;
×
112
    }
113

114
    public WebhookMini build() {
115
      return new WebhookMini(this);
×
116
    }
117
  }
118
}
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