• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

6.45
/src/main/java/com/box/sdkgen/schemas/userintegrationmappings/UserIntegrationMappings.java
1
package com.box.sdkgen.schemas.userintegrationmappings;
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
@JsonFilter("nullablePropertyFilter")
11
public class UserIntegrationMappings extends UserBase {
12

13
  protected String name;
14

15
  protected String login;
16

17
  public UserIntegrationMappings(@JsonProperty("id") String id) {
18
    super(id);
1✔
19
  }
1✔
20

21
  protected UserIntegrationMappings(Builder builder) {
22
    super(builder);
×
23
    this.name = builder.name;
×
UNCOV
24
    this.login = builder.login;
×
UNCOV
25
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
26
  }
×
27

28
  public String getName() {
UNCOV
29
    return name;
×
30
  }
31

32
  public String getLogin() {
UNCOV
33
    return login;
×
34
  }
35

36
  @Override
37
  public boolean equals(Object o) {
38
    if (this == o) {
×
39
      return true;
×
40
    }
41
    if (o == null || getClass() != o.getClass()) {
×
42
      return false;
×
43
    }
44
    UserIntegrationMappings casted = (UserIntegrationMappings) o;
×
45
    return Objects.equals(id, casted.id)
×
UNCOV
46
        && Objects.equals(type, casted.type)
×
UNCOV
47
        && Objects.equals(name, casted.name)
×
UNCOV
48
        && Objects.equals(login, casted.login);
×
49
  }
50

51
  @Override
52
  public int hashCode() {
UNCOV
53
    return Objects.hash(id, type, name, login);
×
54
  }
55

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

77
  public static class Builder extends UserBase.Builder {
78

79
    protected String name;
80

81
    protected String login;
82

83
    public Builder(String id) {
UNCOV
84
      super(id);
×
85
    }
×
86

87
    public Builder name(String name) {
UNCOV
88
      this.name = name;
×
UNCOV
89
      return this;
×
90
    }
91

92
    public Builder login(String login) {
UNCOV
93
      this.login = login;
×
UNCOV
94
      return this;
×
95
    }
96

97
    @Override
98
    public Builder type(UserBaseTypeField type) {
UNCOV
99
      this.type = new EnumWrapper<UserBaseTypeField>(type);
×
UNCOV
100
      return this;
×
101
    }
102

103
    @Override
104
    public Builder type(EnumWrapper<UserBaseTypeField> type) {
UNCOV
105
      this.type = type;
×
UNCOV
106
      return this;
×
107
    }
108

109
    public UserIntegrationMappings build() {
UNCOV
110
      return new UserIntegrationMappings(this);
×
111
    }
112
  }
113
}
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