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

box / box-java-sdk / #6786

29 Apr 2026 03:28PM UTC coverage: 12.53% (-0.1%) from 12.64%
#6786

Pull #1814

github

web-flow
Merge 5bd0d2fb5 into cf0d67fa2
Pull Request #1814: test(boxsdkgen): Add tests for automate api (box/box-codegen#943)

0 of 542 new or added lines in 19 files covered. (0.0%)

18 existing lines in 9 files now uncovered.

8368 of 66786 relevant lines covered (12.53%)

0.13 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/v2026r0/clienterrorv2026r0/ClientErrorV2026R0TypeField.java
1
package com.box.sdkgen.schemas.v2026r0.clienterrorv2026r0;
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

NEW
15
public enum ClientErrorV2026R0TypeField implements Valuable {
×
NEW
16
  ERROR("error");
×
17

18
  private final String value;
19

NEW
20
  ClientErrorV2026R0TypeField(String value) {
×
NEW
21
    this.value = value;
×
NEW
22
  }
×
23

24
  @JsonValue
25
  public String getValue() {
NEW
26
    return value;
×
27
  }
28

29
  public static class ClientErrorV2026R0TypeFieldDeserializer
30
      extends JsonDeserializer<EnumWrapper<ClientErrorV2026R0TypeField>> {
31

32
    public ClientErrorV2026R0TypeFieldDeserializer() {
NEW
33
      super();
×
NEW
34
    }
×
35

36
    @Override
37
    public EnumWrapper<ClientErrorV2026R0TypeField> deserialize(
38
        JsonParser p, DeserializationContext ctxt) throws IOException {
NEW
39
      String value = p.getValueAsString();
×
NEW
40
      return Arrays.stream(ClientErrorV2026R0TypeField.values())
×
NEW
41
          .filter((v) -> v.getValue().equalsIgnoreCase(value))
×
NEW
42
          .findFirst()
×
NEW
43
          .map(EnumWrapper::new)
×
NEW
44
          .orElse(new EnumWrapper<ClientErrorV2026R0TypeField>(value));
×
45
    }
46
  }
47

48
  public static class ClientErrorV2026R0TypeFieldSerializer
49
      extends JsonSerializer<EnumWrapper<ClientErrorV2026R0TypeField>> {
50

51
    public ClientErrorV2026R0TypeFieldSerializer() {
NEW
52
      super();
×
NEW
53
    }
×
54

55
    @Override
56
    public void serialize(
57
        EnumWrapper<ClientErrorV2026R0TypeField> value,
58
        JsonGenerator gen,
59
        SerializerProvider serializers)
60
        throws IOException {
NEW
61
      gen.writeString(value.getStringValue());
×
NEW
62
    }
×
63
  }
64
}
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