GraphSONMessageSerializerV3d0 extends AbstractGraphSONMessageSerializerV2d0 implements MessageTextSerializer { @Override public RequestMessage deserializeRequest(final String msg) throws SerializationException { try { return mapper.readValue(msg, RequestMessage.class); } catch (Exception ex) { logger.warn(String.format("Request [%s] could not be deserialized by %s.", msg, GraphSONMessageSerializerV3d0.class.getName()), ex); throw new SerializationException(ex); } } GraphSONMessageSerializerV3d0(); @Deprecated  GraphSONMessageSerializerV3d0(final GraphSONMapper mapper);  GraphSONMessageSerializerV3d0(final GraphSONMapper.Builder mapperBuilder); @Override String[] mimeTypesSupported(); @Override ResponseMessage deserializeResponse(final String msg); @Override String serializeResponseAsString(final ResponseMessage responseMessage); @Override RequestMessage deserializeRequest(final String msg); @Override String serializeRequestAsString(final RequestMessage requestMessage);  }
@Test public void shouldDeserializeNotPredicate() throws Exception { final String requestMessageWithP = "{\"requestId\":{\"@type\":\"g:UUID\",\"@value\":\"0397b9c0-ffab-470e-a6a8-644fc80c01d6\"},\"op\":\"bytecode\",\"processor\":\"traversal\",\"args\":{\"gremlin\":{\"@type\":\"g:Bytecode\",\"@value\":{\"step\":[[\"V\"],[\"hasLabel\",\"person\"],[\"has\",\"age\",{\"@type\":\"g:P\",\"@value\":{\"predicate\":\"not\",\"value\":{\"@type\":\"g:P\",\"@value\":{\"predicate\":\"lte\",\"value\":{\"@type\":\"g:Int32\",\"@value\":10}}}}}]]}},\"aliases\":{\"g\":\"gmodern\"}}}"; final ByteBuf bb = allocator.buffer(requestMessageWithP.length()); bb.writeBytes(requestMessageWithP.getBytes()); final RequestMessage m = serializer.deserializeRequest(bb); assertEquals("bytecode", m.getOp()); assertNotNull(m.getArgs()); }