@Test public void usesServerStorageMethod() throws IOException { ArrayNode inputJson = jsnA( jsnO( "components", jsnA( jsnO( "type", jsn("FORENAME"), "value", jsn("foreName1") ) ) ) ); ObjectNode storageFormat = jsnO( "list", inputJson ); PersonNamesConverter converter = new PersonNamesConverter(); Object asTinkerpop = converter.jsonToTinkerpop(inputJson); assertThat(storageFormat.toString(), sameJSONAs((String) asTinkerpop)); }
@Override public Object jsonToTinkerpop(JsonNode json) throws IOException { ObjectNode dbJson = jsnO("list", json); new ObjectMapper().treeToValue(dbJson, PersonNames.class); return dbJson.toString(); }
PersonNamesConverter implements Converter, HasParts { @Override public Object jsonToTinkerpop(JsonNode json) throws IOException { ObjectNode dbJson = jsnO("list", json); new ObjectMapper().treeToValue(dbJson, PersonNames.class); return dbJson.toString(); } }
PersonNamesConverter implements Converter, HasParts { @Override public Object jsonToTinkerpop(JsonNode json) throws IOException { ObjectNode dbJson = jsnO("list", json); new ObjectMapper().treeToValue(dbJson, PersonNames.class); return dbJson.toString(); }  }
PersonNamesConverter implements Converter, HasParts { @Override public Object jsonToTinkerpop(JsonNode json) throws IOException { ObjectNode dbJson = jsnO("list", json); new ObjectMapper().treeToValue(dbJson, PersonNames.class); return dbJson.toString(); }  @Override Object jsonToTinkerpop(JsonNode json); PersonNames tinkerpopToJava(Object value); @Override JsonNode tinkerpopToJson(Object value); String getGuiTypeId(); @Override String getUniqueTypeIdentifier(); @Override Collection<String> getParts(); }
PersonNamesConverter implements Converter, HasParts { @Override public Object jsonToTinkerpop(JsonNode json) throws IOException { ObjectNode dbJson = jsnO("list", json); new ObjectMapper().treeToValue(dbJson, PersonNames.class); return dbJson.toString(); }  @Override Object jsonToTinkerpop(JsonNode json); PersonNames tinkerpopToJava(Object value); @Override JsonNode tinkerpopToJson(Object value); String getGuiTypeId(); @Override String getUniqueTypeIdentifier(); @Override Collection<String> getParts();  }