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

box / box-java-sdk / #6046

31 Dec 2025 02:32PM UTC coverage: 35.122% (-0.5%) from 35.647%
#6046

push

github

web-flow
test: Remove integration mappings tests (box/box-codegen#912) (#1671)

18719 of 53297 relevant lines covered (35.12%)

0.35 hits per line

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

0.0
/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
/** A base representation of an integration mapping object. */
13
@JsonFilter("nullablePropertyFilter")
14
public class IntegrationMappingBase extends SerializableObject {
15

16
  /**
17
   * A unique identifier of a folder mapping (part of a composite key together with
18
   * `integration_type`).
19
   */
20
  protected final String id;
21

22
  /** Mapping type. */
23
  @JsonDeserialize(
24
      using = IntegrationMappingBaseTypeField.IntegrationMappingBaseTypeFieldDeserializer.class)
25
  @JsonSerialize(
26
      using = IntegrationMappingBaseTypeField.IntegrationMappingBaseTypeFieldSerializer.class)
27
  protected EnumWrapper<IntegrationMappingBaseTypeField> type;
28

29
  public IntegrationMappingBase(@JsonProperty("id") String id) {
30
    super();
×
31
    this.id = id;
×
32
    this.type =
×
33
        new EnumWrapper<IntegrationMappingBaseTypeField>(
34
            IntegrationMappingBaseTypeField.INTEGRATION_MAPPING);
35
  }
×
36

37
  protected IntegrationMappingBase(Builder builder) {
38
    super();
×
39
    this.id = builder.id;
×
40
    this.type = builder.type;
×
41
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
42
  }
×
43

44
  public String getId() {
45
    return id;
×
46
  }
47

48
  public EnumWrapper<IntegrationMappingBaseTypeField> getType() {
49
    return type;
×
50
  }
51

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

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

69
  @Override
70
  public String toString() {
71
    return "IntegrationMappingBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
72
  }
73

74
  public static class Builder extends NullableFieldTracker {
75

76
    protected final String id;
77

78
    protected EnumWrapper<IntegrationMappingBaseTypeField> type;
79

80
    public Builder(String id) {
81
      super();
×
82
      this.id = id;
×
83
      this.type =
×
84
          new EnumWrapper<IntegrationMappingBaseTypeField>(
85
              IntegrationMappingBaseTypeField.INTEGRATION_MAPPING);
86
    }
×
87

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

93
    public Builder type(EnumWrapper<IntegrationMappingBaseTypeField> type) {
94
      this.type = type;
×
95
      return this;
×
96
    }
97

98
    public IntegrationMappingBase build() {
99
      return new IntegrationMappingBase(this);
×
100
    }
101
  }
102
}
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