• 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

11.43
/src/main/java/com/box/sdkgen/schemas/foldermini/FolderMini.java
1
package com.box.sdkgen.schemas.foldermini;
2

3
import com.box.sdkgen.schemas.folderbase.FolderBase;
4
import com.box.sdkgen.schemas.folderbase.FolderBaseTypeField;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.Objects;
9

10
/** A mini representation of a file version, used when nested under another resource. */
11
@JsonFilter("nullablePropertyFilter")
12
public class FolderMini extends FolderBase {
13

14
  @JsonProperty("sequence_id")
15
  protected String sequenceId;
16

17
  /** The name of the folder. */
18
  protected String name;
19

20
  public FolderMini(@JsonProperty("id") String id) {
21
    super(id);
1✔
22
  }
1✔
23

24
  protected FolderMini(Builder builder) {
25
    super(builder);
×
26
    this.sequenceId = builder.sequenceId;
×
27
    this.name = builder.name;
×
28
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
29
  }
×
30

31
  public String getSequenceId() {
32
    return sequenceId;
1✔
33
  }
34

35
  public String getName() {
36
    return name;
1✔
37
  }
38

39
  @Override
40
  public boolean equals(Object o) {
41
    if (this == o) {
×
42
      return true;
×
43
    }
44
    if (o == null || getClass() != o.getClass()) {
×
45
      return false;
×
46
    }
47
    FolderMini casted = (FolderMini) o;
×
48
    return Objects.equals(id, casted.id)
×
49
        && Objects.equals(etag, casted.etag)
×
50
        && Objects.equals(type, casted.type)
×
51
        && Objects.equals(sequenceId, casted.sequenceId)
×
52
        && Objects.equals(name, casted.name);
×
53
  }
54

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

60
  @Override
61
  public String toString() {
62
    return "FolderMini{"
×
63
        + "id='"
64
        + id
65
        + '\''
66
        + ", "
67
        + "etag='"
68
        + etag
69
        + '\''
70
        + ", "
71
        + "type='"
72
        + type
73
        + '\''
74
        + ", "
75
        + "sequenceId='"
76
        + sequenceId
77
        + '\''
78
        + ", "
79
        + "name='"
80
        + name
81
        + '\''
82
        + "}";
83
  }
84

85
  public static class Builder extends FolderBase.Builder {
86

87
    protected String sequenceId;
88

89
    protected String name;
90

91
    public Builder(String id) {
92
      super(id);
×
93
    }
×
94

95
    public Builder sequenceId(String sequenceId) {
96
      this.sequenceId = sequenceId;
×
97
      return this;
×
98
    }
99

100
    public Builder name(String name) {
101
      this.name = name;
×
102
      return this;
×
103
    }
104

105
    @Override
106
    public Builder etag(String etag) {
107
      this.etag = etag;
×
108
      this.markNullableFieldAsSet("etag");
×
109
      return this;
×
110
    }
111

112
    @Override
113
    public Builder type(FolderBaseTypeField type) {
114
      this.type = new EnumWrapper<FolderBaseTypeField>(type);
×
115
      return this;
×
116
    }
117

118
    @Override
119
    public Builder type(EnumWrapper<FolderBaseTypeField> type) {
120
      this.type = type;
×
121
      return this;
×
122
    }
123

124
    public FolderMini build() {
125
      return new FolderMini(this);
×
126
    }
127
  }
128
}
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