• 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/schemas/filerequestcopyrequest/FileRequestCopyRequestFolderField.java
1
package com.box.sdkgen.schemas.filerequestcopyrequest;
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 FileRequestCopyRequestFolderField extends SerializableObject {
14

15
  /** The value will always be `folder`. */
16
  @JsonDeserialize(
17
      using =
18
          FileRequestCopyRequestFolderTypeField.FileRequestCopyRequestFolderTypeFieldDeserializer
19
              .class)
20
  @JsonSerialize(
21
      using =
22
          FileRequestCopyRequestFolderTypeField.FileRequestCopyRequestFolderTypeFieldSerializer
23
              .class)
24
  protected EnumWrapper<FileRequestCopyRequestFolderTypeField> type;
25

26
  /** The ID of the folder to associate the new file request to. */
27
  protected final String id;
28

29
  public FileRequestCopyRequestFolderField(@JsonProperty("id") String id) {
30
    super();
×
31
    this.id = id;
×
32
  }
×
33

34
  protected FileRequestCopyRequestFolderField(Builder builder) {
35
    super();
1✔
36
    this.type = builder.type;
1✔
37
    this.id = builder.id;
1✔
38
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
39
  }
1✔
40

41
  public EnumWrapper<FileRequestCopyRequestFolderTypeField> 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
    FileRequestCopyRequestFolderField casted = (FileRequestCopyRequestFolderField) 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 "FileRequestCopyRequestFolderField{"
×
69
        + "type='"
70
        + type
71
        + '\''
72
        + ", "
73
        + "id='"
74
        + id
75
        + '\''
76
        + "}";
77
  }
78

79
  public static class Builder extends NullableFieldTracker {
80

81
    protected EnumWrapper<FileRequestCopyRequestFolderTypeField> type;
82

83
    protected final String id;
84

85
    public Builder(String id) {
86
      super();
1✔
87
      this.id = id;
1✔
88
    }
1✔
89

90
    public Builder type(FileRequestCopyRequestFolderTypeField type) {
91
      this.type = new EnumWrapper<FileRequestCopyRequestFolderTypeField>(type);
1✔
92
      return this;
1✔
93
    }
94

95
    public Builder type(EnumWrapper<FileRequestCopyRequestFolderTypeField> type) {
96
      this.type = type;
×
97
      return this;
×
98
    }
99

100
    public FileRequestCopyRequestFolderField build() {
101
      return new FileRequestCopyRequestFolderField(this);
1✔
102
    }
103
  }
104
}
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