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

box / box-java-sdk / #7171

27 May 2026 09:53AM UTC coverage: 34.945% (+0.02%) from 34.927%
#7171

push

github

web-flow
test: remove token downscope from notes test (box/box-codegen#957) (#1864)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

19442 of 55636 relevant lines covered (34.94%)

0.35 hits per line

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

86.67
/src/main/java/com/box/sdkgen/schemas/signrequest/SignRequestStatusField.java
1
package com.box.sdkgen.schemas.signrequest;
2

3
import com.box.sdkgen.serialization.json.EnumWrapper;
4
import com.box.sdkgen.serialization.json.Valuable;
5
import com.fasterxml.jackson.annotation.JsonValue;
6
import com.fasterxml.jackson.core.JsonGenerator;
7
import com.fasterxml.jackson.core.JsonParser;
8
import com.fasterxml.jackson.databind.DeserializationContext;
9
import com.fasterxml.jackson.databind.JsonDeserializer;
10
import com.fasterxml.jackson.databind.JsonSerializer;
11
import com.fasterxml.jackson.databind.SerializerProvider;
12
import java.io.IOException;
13
import java.util.Arrays;
14

15
public enum SignRequestStatusField implements Valuable {
1✔
16
  CONVERTING("converting"),
1✔
17
  CREATED("created"),
1✔
18
  SENT("sent"),
1✔
19
  VIEWED("viewed"),
1✔
20
  SIGNED("signed"),
1✔
21
  CANCELLED("cancelled"),
1✔
22
  DECLINED("declined"),
1✔
23
  ERROR("error"),
1✔
24
  ERROR_CONVERTING("error_converting"),
1✔
25
  ERROR_SENDING("error_sending"),
1✔
26
  EXPIRED("expired"),
1✔
27
  FINALIZING("finalizing"),
1✔
28
  ERROR_FINALIZING("error_finalizing");
1✔
29

30
  private final String value;
31

32
  SignRequestStatusField(String value) {
1✔
33
    this.value = value;
1✔
34
  }
1✔
35

36
  @JsonValue
37
  public String getValue() {
38
    return value;
1✔
39
  }
40

41
  public static class SignRequestStatusFieldDeserializer
42
      extends JsonDeserializer<EnumWrapper<SignRequestStatusField>> {
43

44
    public SignRequestStatusFieldDeserializer() {
45
      super();
1✔
46
    }
1✔
47

48
    @Override
49
    public EnumWrapper<SignRequestStatusField> deserialize(
50
        JsonParser p, DeserializationContext ctxt) throws IOException {
51
      String value = p.getValueAsString();
1✔
52
      return Arrays.stream(SignRequestStatusField.values())
1✔
53
          .filter((v) -> v.getValue().equalsIgnoreCase(value))
1✔
54
          .findFirst()
1✔
55
          .map(EnumWrapper::new)
1✔
56
          .orElse(new EnumWrapper<SignRequestStatusField>(value));
1✔
57
    }
58
  }
59

60
  public static class SignRequestStatusFieldSerializer
61
      extends JsonSerializer<EnumWrapper<SignRequestStatusField>> {
62

63
    public SignRequestStatusFieldSerializer() {
64
      super();
×
65
    }
×
66

67
    @Override
68
    public void serialize(
69
        EnumWrapper<SignRequestStatusField> value,
70
        JsonGenerator gen,
71
        SerializerProvider serializers)
72
        throws IOException {
73
      gen.writeString(value.getStringValue());
×
74
    }
×
75
  }
76
}
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