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

box / box-java-sdk-gen / #155

30 May 2025 01:03PM UTC coverage: 35.646% (+0.3%) from 35.311%
#155

push

github

web-flow
fix: Fix downscope token to use `retrieveToken` method for token retrieval (box/box-codegen#731) (#320)

4 of 4 new or added lines in 4 files covered. (100.0%)

2952 existing lines in 99 files now uncovered.

15628 of 43842 relevant lines covered (35.65%)

0.36 hits per line

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

15.15
/src/main/java/com/box/sdkgen/schemas/zipdownload/ZipDownload.java
1
package com.box.sdkgen.schemas.zipdownload;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.internal.utils.DateTimeUtils;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8
import java.util.Date;
9
import java.util.List;
10
import java.util.Objects;
11

12
public class ZipDownload extends SerializableObject {
13

14
  @JsonProperty("download_url")
15
  protected String downloadUrl;
16

17
  @JsonProperty("status_url")
18
  protected String statusUrl;
19

20
  @JsonProperty("expires_at")
21
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
22
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
23
  protected Date expiresAt;
24

25
  @JsonProperty("name_conflicts")
26
  protected List<List<ZipDownloadNameConflictsField>> nameConflicts;
27

28
  public ZipDownload() {
29
    super();
1✔
30
  }
1✔
31

32
  protected ZipDownload(ZipDownloadBuilder builder) {
UNCOV
33
    super();
×
UNCOV
34
    this.downloadUrl = builder.downloadUrl;
×
UNCOV
35
    this.statusUrl = builder.statusUrl;
×
UNCOV
36
    this.expiresAt = builder.expiresAt;
×
UNCOV
37
    this.nameConflicts = builder.nameConflicts;
×
UNCOV
38
  }
×
39

40
  public String getDownloadUrl() {
41
    return downloadUrl;
1✔
42
  }
43

44
  public String getStatusUrl() {
45
    return statusUrl;
1✔
46
  }
47

48
  public Date getExpiresAt() {
49
    return expiresAt;
1✔
50
  }
51

52
  public List<List<ZipDownloadNameConflictsField>> getNameConflicts() {
53
    return nameConflicts;
×
54
  }
55

56
  @Override
57
  public boolean equals(Object o) {
58
    if (this == o) {
×
59
      return true;
×
60
    }
61
    if (o == null || getClass() != o.getClass()) {
×
62
      return false;
×
63
    }
UNCOV
64
    ZipDownload casted = (ZipDownload) o;
×
UNCOV
65
    return Objects.equals(downloadUrl, casted.downloadUrl)
×
UNCOV
66
        && Objects.equals(statusUrl, casted.statusUrl)
×
67
        && Objects.equals(expiresAt, casted.expiresAt)
×
UNCOV
68
        && Objects.equals(nameConflicts, casted.nameConflicts);
×
69
  }
70

71
  @Override
72
  public int hashCode() {
UNCOV
73
    return Objects.hash(downloadUrl, statusUrl, expiresAt, nameConflicts);
×
74
  }
75

76
  @Override
77
  public String toString() {
UNCOV
78
    return "ZipDownload{"
×
79
        + "downloadUrl='"
80
        + downloadUrl
81
        + '\''
82
        + ", "
83
        + "statusUrl='"
84
        + statusUrl
85
        + '\''
86
        + ", "
87
        + "expiresAt='"
88
        + expiresAt
89
        + '\''
90
        + ", "
91
        + "nameConflicts='"
92
        + nameConflicts
93
        + '\''
94
        + "}";
95
  }
96

UNCOV
97
  public static class ZipDownloadBuilder {
×
98

99
    protected String downloadUrl;
100

101
    protected String statusUrl;
102

103
    protected Date expiresAt;
104

105
    protected List<List<ZipDownloadNameConflictsField>> nameConflicts;
106

107
    public ZipDownloadBuilder downloadUrl(String downloadUrl) {
108
      this.downloadUrl = downloadUrl;
×
UNCOV
109
      return this;
×
110
    }
111

112
    public ZipDownloadBuilder statusUrl(String statusUrl) {
113
      this.statusUrl = statusUrl;
×
UNCOV
114
      return this;
×
115
    }
116

117
    public ZipDownloadBuilder expiresAt(Date expiresAt) {
118
      this.expiresAt = expiresAt;
×
119
      return this;
×
120
    }
121

122
    public ZipDownloadBuilder nameConflicts(
123
        List<List<ZipDownloadNameConflictsField>> nameConflicts) {
UNCOV
124
      this.nameConflicts = nameConflicts;
×
UNCOV
125
      return this;
×
126
    }
127

128
    public ZipDownload build() {
UNCOV
129
      return new ZipDownload(this);
×
130
    }
131
  }
132
}
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