@Test public void testMapProperties() { DependencyGraph graph = DependencyGraphFactory.createGraph(); Node n1 = graph.getOrCreateNodeByName("n1"); n1.setProperty("a", "aString"); n1.setProperty("b", 1); n1.setProperty("c", 2L); n1.setProperty("d", true); n1.setProperty("e", Lists.newArrayList("s1", "s2")); n1.setProperty("f", Lists.newArrayList(1, 2L)); n1.setProperty("g", 3.1415); GraphMapper graphMapper = new GraphMapper(); graphMapper.toNeo4j(graph); assertThat(graphMapper.getNodes()).hasSize(1); AbstractNode node = graphMapper.getNodes().iterator().next(); assertThat(node.getProperties()).hasSize(7); assertThat(node.getProperty("b")).isInstanceOf(Long.class); }
private void mapProperties(Map<String, Object> target, Map<String, Object> source) { source.forEach((k, v) -> target.put(k, mapObject(v))); }
GraphMapper { private void mapProperties(Map<String, Object> target, Map<String, Object> source) { source.forEach((k, v) -> target.put(k, mapObject(v))); } }
GraphMapper { private void mapProperties(Map<String, Object> target, Map<String, Object> source) { source.forEach((k, v) -> target.put(k, mapObject(v))); }  }
GraphMapper { private void mapProperties(Map<String, Object> target, Map<String, Object> source) { source.forEach((k, v) -> target.put(k, mapObject(v))); }  void toNeo4j(DependencyGraph graph); Collection<AbstractNode> getNodes(); List<ReferencesRelation> getReferencesRelations(); }
GraphMapper { private void mapProperties(Map<String, Object> target, Map<String, Object> source) { source.forEach((k, v) -> target.put(k, mapObject(v))); }  void toNeo4j(DependencyGraph graph); Collection<AbstractNode> getNodes(); List<ReferencesRelation> getReferencesRelations();  }