• 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

50.0
/src/main/java/com/box/sdkgen/managers/taskassignments/CreateTaskAssignmentRequestBodyTaskField.java
1
package com.box.sdkgen.managers.taskassignments;
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 CreateTaskAssignmentRequestBodyTaskField extends SerializableObject {
14

15
  /** The ID of the task. */
16
  protected final String id;
17

18
  /** The type of the item to assign. */
19
  @JsonDeserialize(
20
      using =
21
          CreateTaskAssignmentRequestBodyTaskTypeField
22
              .CreateTaskAssignmentRequestBodyTaskTypeFieldDeserializer.class)
23
  @JsonSerialize(
24
      using =
25
          CreateTaskAssignmentRequestBodyTaskTypeField
26
              .CreateTaskAssignmentRequestBodyTaskTypeFieldSerializer.class)
27
  protected EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField> type;
28

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

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

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

48
  public EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField> getType() {
49
    return type;
1✔
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
    CreateTaskAssignmentRequestBodyTaskField casted = (CreateTaskAssignmentRequestBodyTaskField) 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 "CreateTaskAssignmentRequestBodyTaskField{"
×
72
        + "id='"
73
        + id
74
        + '\''
75
        + ", "
76
        + "type='"
77
        + type
78
        + '\''
79
        + "}";
80
  }
81

82
  public static class Builder extends NullableFieldTracker {
83

84
    protected final String id;
85

86
    protected EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField> type;
87

88
    public Builder(String id) {
89
      super();
1✔
90
      this.id = id;
1✔
91
      this.type =
1✔
92
          new EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField>(
93
              CreateTaskAssignmentRequestBodyTaskTypeField.TASK);
94
    }
1✔
95

96
    public Builder type(CreateTaskAssignmentRequestBodyTaskTypeField type) {
97
      this.type = new EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField>(type);
1✔
98
      return this;
1✔
99
    }
100

101
    public Builder type(EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField> type) {
102
      this.type = type;
×
103
      return this;
×
104
    }
105

106
    public CreateTaskAssignmentRequestBodyTaskField build() {
107
      return new CreateTaskAssignmentRequestBodyTaskField(this);
1✔
108
    }
109
  }
110
}
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