• 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

7.69
/src/main/java/com/box/sdkgen/schemas/metadata/Metadata.java
1
package com.box.sdkgen.schemas.metadata;
2

3
import com.box.sdkgen.schemas.metadatabase.MetadataBase;
4
import com.fasterxml.jackson.annotation.JsonFilter;
5
import java.util.Objects;
6

7
/** An instance of a metadata template, which has been applied to a file or folder. */
8
@JsonFilter("nullablePropertyFilter")
9
public class Metadata extends MetadataBase {
10

11
  public Metadata() {
12
    super();
1✔
13
  }
1✔
14

15
  protected Metadata(Builder builder) {
16
    super(builder);
×
17
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
18
  }
×
19

20
  @Override
21
  public boolean equals(Object o) {
22
    if (this == o) {
×
23
      return true;
×
24
    }
25
    if (o == null || getClass() != o.getClass()) {
×
26
      return false;
×
27
    }
28
    Metadata casted = (Metadata) o;
×
29
    return Objects.equals(parent, casted.parent)
×
30
        && Objects.equals(template, casted.template)
×
31
        && Objects.equals(scope, casted.scope)
×
32
        && Objects.equals(version, casted.version);
×
33
  }
34

35
  @Override
36
  public int hashCode() {
37
    return Objects.hash(parent, template, scope, version);
×
38
  }
39

40
  @Override
41
  public String toString() {
42
    return "Metadata{"
×
43
        + "parent='"
44
        + parent
45
        + '\''
46
        + ", "
47
        + "template='"
48
        + template
49
        + '\''
50
        + ", "
51
        + "scope='"
52
        + scope
53
        + '\''
54
        + ", "
55
        + "version='"
56
        + version
57
        + '\''
58
        + "}";
59
  }
60

61
  public static class Builder extends MetadataBase.Builder {
×
62

63
    @Override
64
    public Builder parent(String parent) {
65
      this.parent = parent;
×
66
      return this;
×
67
    }
68

69
    @Override
70
    public Builder template(String template) {
71
      this.template = template;
×
72
      return this;
×
73
    }
74

75
    @Override
76
    public Builder scope(String scope) {
77
      this.scope = scope;
×
78
      return this;
×
79
    }
80

81
    @Override
82
    public Builder version(Long version) {
83
      this.version = version;
×
84
      return this;
×
85
    }
86

87
    public Metadata build() {
88
      return new Metadata(this);
×
89
    }
90
  }
91
}
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