GrpcSerializationFormats { public static Set<SerializationFormat> values() { return GRPC_FORMATS; } private  GrpcSerializationFormats(); static Set<SerializationFormat> values(); static boolean isGrpc(SerializationFormat format); static boolean isProto(SerializationFormat format); static boolean isJson(SerializationFormat format); static boolean isGrpcWeb(SerializationFormat format); static boolean isGrpcWebText(SerializationFormat format); static final SerializationFormat PROTO; static final SerializationFormat JSON; static final SerializationFormat PROTO_WEB; static final SerializationFormat JSON_WEB; static final SerializationFormat PROTO_WEB_TEXT; }
@Test void allFormatsAreRegistered() { assertThat(GrpcSerializationFormats.values()) .containsExactlyInAnyOrder(PROTO, JSON, PROTO_WEB, JSON_WEB, PROTO_WEB_TEXT); }