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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

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

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

21.43
/src/main/java/com/box/sdkgen/schemas/integrationmappingbase/IntegrationMappingBase.java
1
package com.box.sdkgen.schemas.integrationmappingbase;
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.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class IntegrationMappingBase extends SerializableObject {
14

15
  protected final String id;
16

17
  @JsonDeserialize(
18
      using = IntegrationMappingBaseTypeField.IntegrationMappingBaseTypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using = IntegrationMappingBaseTypeField.IntegrationMappingBaseTypeFieldSerializer.class)
21
  protected EnumWrapper<IntegrationMappingBaseTypeField> type;
22

23
  public IntegrationMappingBase(@JsonProperty("id") String id) {
24
    super();
1✔
25
    this.id = id;
1✔
26
    this.type =
1✔
27
        new EnumWrapper<IntegrationMappingBaseTypeField>(
28
            IntegrationMappingBaseTypeField.INTEGRATION_MAPPING);
29
  }
1✔
30

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

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

42
  public EnumWrapper<IntegrationMappingBaseTypeField> getType() {
43
    return type;
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()) {
×
UNCOV
52
      return false;
×
53
    }
UNCOV
54
    IntegrationMappingBase casted = (IntegrationMappingBase) o;
×
UNCOV
55
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
56
  }
57

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

63
  @Override
64
  public String toString() {
UNCOV
65
    return "IntegrationMappingBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
66
  }
67

68
  public static class Builder extends NullableFieldTracker {
69

70
    protected final String id;
71

72
    protected EnumWrapper<IntegrationMappingBaseTypeField> type;
73

74
    public Builder(String id) {
75
      super();
×
UNCOV
76
      this.id = id;
×
UNCOV
77
      this.type =
×
78
          new EnumWrapper<IntegrationMappingBaseTypeField>(
79
              IntegrationMappingBaseTypeField.INTEGRATION_MAPPING);
UNCOV
80
    }
×
81

82
    public Builder type(IntegrationMappingBaseTypeField type) {
83
      this.type = new EnumWrapper<IntegrationMappingBaseTypeField>(type);
×
84
      return this;
×
85
    }
86

87
    public Builder type(EnumWrapper<IntegrationMappingBaseTypeField> type) {
88
      this.type = type;
×
UNCOV
89
      return this;
×
90
    }
91

92
    public IntegrationMappingBase build() {
UNCOV
93
      return new IntegrationMappingBase(this);
×
94
    }
95
  }
96
}
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