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

box / box-java-sdk / #4766

04 Sep 2025 02:54PM UTC coverage: 37.239% (-1.6%) from 38.858%
#4766

push

github

web-flow
feat: Support event with long polling (box/box-codegen#807) (#1409)

32 of 420 new or added lines in 7 files covered. (7.62%)

800 existing lines in 66 files now uncovered.

18480 of 49626 relevant lines covered (37.24%)

0.37 hits per line

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

0.0
/src/main/java/com/box/sdkgen/managers/hubs/GetHubsV2025R0QueryParamsDirectionField.java
1
package com.box.sdkgen.managers.hubs;
2

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

UNCOV
14
public enum GetHubsV2025R0QueryParamsDirectionField implements Valuable {
×
UNCOV
15
  ASC("ASC"),
×
UNCOV
16
  DESC("DESC");
×
17

18
  private final String value;
19

UNCOV
20
  GetHubsV2025R0QueryParamsDirectionField(String value) {
×
UNCOV
21
    this.value = value;
×
UNCOV
22
  }
×
23

24
  public String getValue() {
UNCOV
25
    return value;
×
26
  }
27

28
  public static class GetHubsV2025R0QueryParamsDirectionFieldDeserializer
29
      extends JsonDeserializer<EnumWrapper<GetHubsV2025R0QueryParamsDirectionField>> {
30

31
    public GetHubsV2025R0QueryParamsDirectionFieldDeserializer() {
32
      super();
×
33
    }
×
34

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

47
  public static class GetHubsV2025R0QueryParamsDirectionFieldSerializer
48
      extends JsonSerializer<EnumWrapper<GetHubsV2025R0QueryParamsDirectionField>> {
49

50
    public GetHubsV2025R0QueryParamsDirectionFieldSerializer() {
51
      super();
×
52
    }
×
53

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