• 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

33.33
/src/main/java/com/box/sdkgen/schemas/zipdownloadrequest/ZipDownloadRequestItemsField.java
1
package com.box.sdkgen.schemas.zipdownloadrequest;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
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 ZipDownloadRequestItemsField extends SerializableObject {
13

14
  /** The type of the item to add to the archive. */
15
  @JsonDeserialize(
16
      using = ZipDownloadRequestItemsTypeField.ZipDownloadRequestItemsTypeFieldDeserializer.class)
17
  @JsonSerialize(
18
      using = ZipDownloadRequestItemsTypeField.ZipDownloadRequestItemsTypeFieldSerializer.class)
19
  protected final EnumWrapper<ZipDownloadRequestItemsTypeField> type;
20

21
  /**
22
   * The identifier of the item to add to the archive. When this item is a folder then this can not
23
   * be the root folder with ID `0`.
24
   */
25
  protected final String id;
26

27
  public ZipDownloadRequestItemsField(ZipDownloadRequestItemsTypeField type, String id) {
28
    super();
1✔
29
    this.type = new EnumWrapper<ZipDownloadRequestItemsTypeField>(type);
1✔
30
    this.id = id;
1✔
31
  }
1✔
32

33
  public ZipDownloadRequestItemsField(
34
      @JsonProperty("type") EnumWrapper<ZipDownloadRequestItemsTypeField> type,
35
      @JsonProperty("id") String id) {
36
    super();
×
37
    this.type = type;
×
38
    this.id = id;
×
39
  }
×
40

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

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

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

61
  @Override
62
  public int hashCode() {
63
    return Objects.hash(type, id);
×
64
  }
65

66
  @Override
67
  public String toString() {
68
    return "ZipDownloadRequestItemsField{"
×
69
        + "type='"
70
        + type
71
        + '\''
72
        + ", "
73
        + "id='"
74
        + id
75
        + '\''
76
        + "}";
77
  }
78
}
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