• 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

4.55
/src/main/java/com/box/sdkgen/schemas/commentfull/CommentFull.java
1
package com.box.sdkgen.schemas.commentfull;
2

3
import com.box.sdkgen.schemas.comment.Comment;
4
import com.box.sdkgen.schemas.comment.CommentItemField;
5
import com.box.sdkgen.schemas.commentbase.CommentBaseTypeField;
6
import com.box.sdkgen.schemas.usermini.UserMini;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import java.util.Date;
10
import java.util.Objects;
11

12
public class CommentFull extends Comment {
13

14
  @JsonProperty("tagged_message")
15
  protected String taggedMessage;
16

17
  public CommentFull() {
18
    super();
1✔
19
  }
1✔
20

21
  protected CommentFull(CommentFullBuilder builder) {
22
    super(builder);
×
23
    this.taggedMessage = builder.taggedMessage;
×
UNCOV
24
  }
×
25

26
  public String getTaggedMessage() {
UNCOV
27
    return taggedMessage;
×
28
  }
29

30
  @Override
31
  public boolean equals(Object o) {
32
    if (this == o) {
×
UNCOV
33
      return true;
×
34
    }
35
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
36
      return false;
×
37
    }
38
    CommentFull casted = (CommentFull) o;
×
39
    return Objects.equals(id, casted.id)
×
40
        && Objects.equals(type, casted.type)
×
41
        && Objects.equals(isReplyComment, casted.isReplyComment)
×
42
        && Objects.equals(message, casted.message)
×
43
        && Objects.equals(createdBy, casted.createdBy)
×
44
        && Objects.equals(createdAt, casted.createdAt)
×
45
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
46
        && Objects.equals(item, casted.item)
×
UNCOV
47
        && Objects.equals(taggedMessage, casted.taggedMessage);
×
48
  }
49

50
  @Override
51
  public int hashCode() {
UNCOV
52
    return Objects.hash(
×
53
        id, type, isReplyComment, message, createdBy, createdAt, modifiedAt, item, taggedMessage);
54
  }
55

56
  @Override
57
  public String toString() {
UNCOV
58
    return "CommentFull{"
×
59
        + "id='"
60
        + id
61
        + '\''
62
        + ", "
63
        + "type='"
64
        + type
65
        + '\''
66
        + ", "
67
        + "isReplyComment='"
68
        + isReplyComment
69
        + '\''
70
        + ", "
71
        + "message='"
72
        + message
73
        + '\''
74
        + ", "
75
        + "createdBy='"
76
        + createdBy
77
        + '\''
78
        + ", "
79
        + "createdAt='"
80
        + createdAt
81
        + '\''
82
        + ", "
83
        + "modifiedAt='"
84
        + modifiedAt
85
        + '\''
86
        + ", "
87
        + "item='"
88
        + item
89
        + '\''
90
        + ", "
91
        + "taggedMessage='"
92
        + taggedMessage
93
        + '\''
94
        + "}";
95
  }
96

UNCOV
97
  public static class CommentFullBuilder extends CommentBuilder {
×
98

99
    protected String taggedMessage;
100

101
    public CommentFullBuilder taggedMessage(String taggedMessage) {
102
      this.taggedMessage = taggedMessage;
×
UNCOV
103
      return this;
×
104
    }
105

106
    @Override
107
    public CommentFullBuilder id(String id) {
108
      this.id = id;
×
UNCOV
109
      return this;
×
110
    }
111

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

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

124
    @Override
125
    public CommentFullBuilder isReplyComment(Boolean isReplyComment) {
126
      this.isReplyComment = isReplyComment;
×
UNCOV
127
      return this;
×
128
    }
129

130
    @Override
131
    public CommentFullBuilder message(String message) {
132
      this.message = message;
×
UNCOV
133
      return this;
×
134
    }
135

136
    @Override
137
    public CommentFullBuilder createdBy(UserMini createdBy) {
138
      this.createdBy = createdBy;
×
UNCOV
139
      return this;
×
140
    }
141

142
    @Override
143
    public CommentFullBuilder createdAt(Date createdAt) {
144
      this.createdAt = createdAt;
×
UNCOV
145
      return this;
×
146
    }
147

148
    @Override
149
    public CommentFullBuilder modifiedAt(Date modifiedAt) {
150
      this.modifiedAt = modifiedAt;
×
UNCOV
151
      return this;
×
152
    }
153

154
    @Override
155
    public CommentFullBuilder item(CommentItemField item) {
156
      this.item = item;
×
UNCOV
157
      return this;
×
158
    }
159

160
    public CommentFull build() {
UNCOV
161
      return new CommentFull(this);
×
162
    }
163
  }
164
}
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