• 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

7.41
/src/main/java/com/box/sdkgen/schemas/airesponsefull/AiResponseFull.java
1
package com.box.sdkgen.schemas.airesponsefull;
2

3
import com.box.sdkgen.schemas.aiagentinfo.AiAgentInfo;
4
import com.box.sdkgen.schemas.aicitation.AiCitation;
5
import com.box.sdkgen.schemas.airesponse.AiResponse;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Date;
8
import java.util.List;
9
import java.util.Objects;
10

11
public class AiResponseFull extends AiResponse {
12

13
  protected List<AiCitation> citations;
14

15
  public AiResponseFull(
16
      @JsonProperty("answer") String answer, @JsonProperty("created_at") Date createdAt) {
17
    super(answer, createdAt);
1✔
18
  }
1✔
19

20
  protected AiResponseFull(AiResponseFullBuilder builder) {
21
    super(builder);
×
22
    this.citations = builder.citations;
×
UNCOV
23
  }
×
24

25
  public List<AiCitation> getCitations() {
UNCOV
26
    return citations;
×
27
  }
28

29
  @Override
30
  public boolean equals(Object o) {
31
    if (this == o) {
×
UNCOV
32
      return true;
×
33
    }
34
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
35
      return false;
×
36
    }
37
    AiResponseFull casted = (AiResponseFull) o;
×
38
    return Objects.equals(answer, casted.answer)
×
39
        && Objects.equals(createdAt, casted.createdAt)
×
40
        && Objects.equals(completionReason, casted.completionReason)
×
41
        && Objects.equals(aiAgentInfo, casted.aiAgentInfo)
×
UNCOV
42
        && Objects.equals(citations, casted.citations);
×
43
  }
44

45
  @Override
46
  public int hashCode() {
UNCOV
47
    return Objects.hash(answer, createdAt, completionReason, aiAgentInfo, citations);
×
48
  }
49

50
  @Override
51
  public String toString() {
UNCOV
52
    return "AiResponseFull{"
×
53
        + "answer='"
54
        + answer
55
        + '\''
56
        + ", "
57
        + "createdAt='"
58
        + createdAt
59
        + '\''
60
        + ", "
61
        + "completionReason='"
62
        + completionReason
63
        + '\''
64
        + ", "
65
        + "aiAgentInfo='"
66
        + aiAgentInfo
67
        + '\''
68
        + ", "
69
        + "citations='"
70
        + citations
71
        + '\''
72
        + "}";
73
  }
74

75
  public static class AiResponseFullBuilder extends AiResponseBuilder {
76

77
    protected List<AiCitation> citations;
78

79
    public AiResponseFullBuilder(String answer, Date createdAt) {
80
      super(answer, createdAt);
×
UNCOV
81
    }
×
82

83
    public AiResponseFullBuilder citations(List<AiCitation> citations) {
84
      this.citations = citations;
×
UNCOV
85
      return this;
×
86
    }
87

88
    @Override
89
    public AiResponseFullBuilder completionReason(String completionReason) {
90
      this.completionReason = completionReason;
×
UNCOV
91
      return this;
×
92
    }
93

94
    @Override
95
    public AiResponseFullBuilder aiAgentInfo(AiAgentInfo aiAgentInfo) {
96
      this.aiAgentInfo = aiAgentInfo;
×
UNCOV
97
      return this;
×
98
    }
99

100
    public AiResponseFull build() {
UNCOV
101
      return new AiResponseFull(this);
×
102
    }
103
  }
104
}
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