• 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

43.59
/src/main/java/com/box/sdkgen/managers/skills/UpdateBoxSkillCardsOnFileRequestBody.java
1
package com.box.sdkgen.managers.skills;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.keywordskillcard.KeywordSkillCard;
6
import com.box.sdkgen.schemas.skillcard.SkillCard;
7
import com.box.sdkgen.schemas.statusskillcard.StatusSkillCard;
8
import com.box.sdkgen.schemas.timelineskillcard.TimelineSkillCard;
9
import com.box.sdkgen.schemas.transcriptskillcard.TranscriptSkillCard;
10
import com.box.sdkgen.serialization.json.EnumWrapper;
11
import com.fasterxml.jackson.annotation.JsonFilter;
12
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
13
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
14
import java.util.Objects;
15

16
@JsonFilter("nullablePropertyFilter")
17
public class UpdateBoxSkillCardsOnFileRequestBody extends SerializableObject {
18

19
  /** The value will always be `replace`. */
20
  @JsonDeserialize(
21
      using =
22
          UpdateBoxSkillCardsOnFileRequestBodyOpField
23
              .UpdateBoxSkillCardsOnFileRequestBodyOpFieldDeserializer.class)
24
  @JsonSerialize(
25
      using =
26
          UpdateBoxSkillCardsOnFileRequestBodyOpField
27
              .UpdateBoxSkillCardsOnFileRequestBodyOpFieldSerializer.class)
28
  protected EnumWrapper<UpdateBoxSkillCardsOnFileRequestBodyOpField> op;
29

30
  /**
31
   * The JSON Path that represents the card to replace. In most cases this will be in the format
32
   * `/cards/{index}` where `index` is the zero-indexed position of the card in the list of cards.
33
   */
34
  protected String path;
35

36
  protected SkillCard value;
37

38
  public UpdateBoxSkillCardsOnFileRequestBody() {
39
    super();
×
40
  }
×
41

42
  protected UpdateBoxSkillCardsOnFileRequestBody(Builder builder) {
43
    super();
1✔
44
    this.op = builder.op;
1✔
45
    this.path = builder.path;
1✔
46
    this.value = builder.value;
1✔
47
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
48
  }
1✔
49

50
  public EnumWrapper<UpdateBoxSkillCardsOnFileRequestBodyOpField> getOp() {
51
    return op;
1✔
52
  }
53

54
  public String getPath() {
55
    return path;
1✔
56
  }
57

58
  public SkillCard getValue() {
59
    return value;
1✔
60
  }
61

62
  @Override
63
  public boolean equals(Object o) {
64
    if (this == o) {
×
65
      return true;
×
66
    }
67
    if (o == null || getClass() != o.getClass()) {
×
68
      return false;
×
69
    }
70
    UpdateBoxSkillCardsOnFileRequestBody casted = (UpdateBoxSkillCardsOnFileRequestBody) o;
×
71
    return Objects.equals(op, casted.op)
×
72
        && Objects.equals(path, casted.path)
×
73
        && Objects.equals(value, casted.value);
×
74
  }
75

76
  @Override
77
  public int hashCode() {
78
    return Objects.hash(op, path, value);
×
79
  }
80

81
  @Override
82
  public String toString() {
83
    return "UpdateBoxSkillCardsOnFileRequestBody{"
×
84
        + "op='"
85
        + op
86
        + '\''
87
        + ", "
88
        + "path='"
89
        + path
90
        + '\''
91
        + ", "
92
        + "value='"
93
        + value
94
        + '\''
95
        + "}";
96
  }
97

98
  public static class Builder extends NullableFieldTracker {
1✔
99

100
    protected EnumWrapper<UpdateBoxSkillCardsOnFileRequestBodyOpField> op;
101

102
    protected String path;
103

104
    protected SkillCard value;
105

106
    public Builder op(UpdateBoxSkillCardsOnFileRequestBodyOpField op) {
107
      this.op = new EnumWrapper<UpdateBoxSkillCardsOnFileRequestBodyOpField>(op);
1✔
108
      return this;
1✔
109
    }
110

111
    public Builder op(EnumWrapper<UpdateBoxSkillCardsOnFileRequestBodyOpField> op) {
112
      this.op = op;
×
113
      return this;
×
114
    }
115

116
    public Builder path(String path) {
117
      this.path = path;
1✔
118
      return this;
1✔
119
    }
120

121
    public Builder value(KeywordSkillCard value) {
122
      this.value = new SkillCard(value);
1✔
123
      return this;
1✔
124
    }
125

126
    public Builder value(TimelineSkillCard value) {
127
      this.value = new SkillCard(value);
×
128
      return this;
×
129
    }
130

131
    public Builder value(TranscriptSkillCard value) {
132
      this.value = new SkillCard(value);
×
133
      return this;
×
134
    }
135

136
    public Builder value(StatusSkillCard value) {
137
      this.value = new SkillCard(value);
×
138
      return this;
×
139
    }
140

141
    public Builder value(SkillCard value) {
142
      this.value = value;
×
143
      return this;
×
144
    }
145

146
    public UpdateBoxSkillCardsOnFileRequestBody build() {
147
      return new UpdateBoxSkillCardsOnFileRequestBody(this);
1✔
148
    }
149
  }
150
}
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