• 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

12.9
/src/main/java/com/box/sdkgen/schemas/usermini/UserMini.java
1
package com.box.sdkgen.schemas.usermini;
2

3
import com.box.sdkgen.schemas.userbase.UserBase;
4
import com.box.sdkgen.schemas.userbase.UserBaseTypeField;
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 user, as can be returned when nested within other resources. */
11
@JsonFilter("nullablePropertyFilter")
12
public class UserMini extends UserBase {
13

14
  /** The display name of this user. */
15
  protected String name;
16

17
  /** The primary email address of this user. */
18
  protected String login;
19

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

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

31
  public String getName() {
32
    return name;
1✔
33
  }
34

35
  public String getLogin() {
36
    return login;
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
    UserMini casted = (UserMini) o;
×
48
    return Objects.equals(id, casted.id)
×
49
        && Objects.equals(type, casted.type)
×
50
        && Objects.equals(name, casted.name)
×
51
        && Objects.equals(login, casted.login);
×
52
  }
53

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

59
  @Override
60
  public String toString() {
61
    return "UserMini{"
×
62
        + "id='"
63
        + id
64
        + '\''
65
        + ", "
66
        + "type='"
67
        + type
68
        + '\''
69
        + ", "
70
        + "name='"
71
        + name
72
        + '\''
73
        + ", "
74
        + "login='"
75
        + login
76
        + '\''
77
        + "}";
78
  }
79

80
  public static class Builder extends UserBase.Builder {
81

82
    protected String name;
83

84
    protected String login;
85

86
    public Builder(String id) {
87
      super(id);
×
88
    }
×
89

90
    public Builder name(String name) {
91
      this.name = name;
×
92
      return this;
×
93
    }
94

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

100
    @Override
101
    public Builder type(UserBaseTypeField type) {
102
      this.type = new EnumWrapper<UserBaseTypeField>(type);
×
103
      return this;
×
104
    }
105

106
    @Override
107
    public Builder type(EnumWrapper<UserBaseTypeField> type) {
108
      this.type = type;
×
109
      return this;
×
110
    }
111

112
    public UserMini build() {
113
      return new UserMini(this);
×
114
    }
115
  }
116
}
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