• 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

52.0
/src/main/java/com/box/sdkgen/managers/tasks/CreateTaskRequestBodyItemField.java
1
package com.box.sdkgen.managers.tasks;
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 CreateTaskRequestBodyItemField extends SerializableObject {
13

14
  /** The ID of the file. */
15
  protected String id;
16

17
  /** The value will always be `file`. */
18
  @JsonDeserialize(
19
      using =
20
          CreateTaskRequestBodyItemTypeField.CreateTaskRequestBodyItemTypeFieldDeserializer.class)
21
  @JsonSerialize(
22
      using = CreateTaskRequestBodyItemTypeField.CreateTaskRequestBodyItemTypeFieldSerializer.class)
23
  protected EnumWrapper<CreateTaskRequestBodyItemTypeField> type;
24

25
  public CreateTaskRequestBodyItemField() {
26
    super();
×
27
  }
×
28

29
  protected CreateTaskRequestBodyItemField(Builder builder) {
30
    super();
1✔
31
    this.id = builder.id;
1✔
32
    this.type = builder.type;
1✔
33
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
34
  }
1✔
35

36
  public String getId() {
37
    return id;
1✔
38
  }
39

40
  public EnumWrapper<CreateTaskRequestBodyItemTypeField> getType() {
41
    return type;
1✔
42
  }
43

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

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

61
  @Override
62
  public String toString() {
63
    return "CreateTaskRequestBodyItemField{"
×
64
        + "id='"
65
        + id
66
        + '\''
67
        + ", "
68
        + "type='"
69
        + type
70
        + '\''
71
        + "}";
72
  }
73

74
  public static class Builder extends NullableFieldTracker {
1✔
75

76
    protected String id;
77

78
    protected EnumWrapper<CreateTaskRequestBodyItemTypeField> type;
79

80
    public Builder id(String id) {
81
      this.id = id;
1✔
82
      return this;
1✔
83
    }
84

85
    public Builder type(CreateTaskRequestBodyItemTypeField type) {
86
      this.type = new EnumWrapper<CreateTaskRequestBodyItemTypeField>(type);
1✔
87
      return this;
1✔
88
    }
89

90
    public Builder type(EnumWrapper<CreateTaskRequestBodyItemTypeField> type) {
91
      this.type = type;
×
92
      return this;
×
93
    }
94

95
    public CreateTaskRequestBodyItemField build() {
96
      return new CreateTaskRequestBodyItemField(this);
1✔
97
    }
98
  }
99
}
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