@Test public void testGetNode() { NodeDTO node = graphController.getNode("v1"); assertThat(node, notNullValue()); assertThat(node.getProperties().get("KEY"), is(5)); }
@GetMapping(value = "/node") public NodeDTO getNode(@RequestParam(value = "name") String name) { LOGGER.info("Node: {}", name); Node result = findNode(name); return NodeMapper.toDTO(result, dependencyGraph); }
GraphController { @GetMapping(value = "/node") public NodeDTO getNode(@RequestParam(value = "name") String name) { LOGGER.info("Node: {}", name); Node result = findNode(name); return NodeMapper.toDTO(result, dependencyGraph); } }
GraphController { @GetMapping(value = "/node") public NodeDTO getNode(@RequestParam(value = "name") String name) { LOGGER.info("Node: {}", name); Node result = findNode(name); return NodeMapper.toDTO(result, dependencyGraph); }  }
GraphController { @GetMapping(value = "/node") public NodeDTO getNode(@RequestParam(value = "name") String name) { LOGGER.info("Node: {}", name); Node result = findNode(name); return NodeMapper.toDTO(result, dependencyGraph); }  @Value("${de.qaware.qav.graph.filename}") void setFilename(String filename); @PostConstruct void init(); @GetMapping(value = "/info") GraphInfoDTO getInfo(); @GetMapping(value = "/node") NodeDTO getNode(@RequestParam(value = "name") String name); @GetMapping(value = "/edge") DependencyDTO getEdge(@RequestParam("from") String from,
                                 @RequestParam("to") String to); @GetMapping(value = "/nodes") Page<Node> getNodes(@RequestParam(value = "q", required = false) String query,
                               Pageable pageable); }
GraphController { @GetMapping(value = "/node") public NodeDTO getNode(@RequestParam(value = "name") String name) { LOGGER.info("Node: {}", name); Node result = findNode(name); return NodeMapper.toDTO(result, dependencyGraph); }  @Value("${de.qaware.qav.graph.filename}") void setFilename(String filename); @PostConstruct void init(); @GetMapping(value = "/info") GraphInfoDTO getInfo(); @GetMapping(value = "/node") NodeDTO getNode(@RequestParam(value = "name") String name); @GetMapping(value = "/edge") DependencyDTO getEdge(@RequestParam("from") String from,
                                 @RequestParam("to") String to); @GetMapping(value = "/nodes") Page<Node> getNodes(@RequestParam(value = "q", required = false) String query,
                               Pageable pageable);  }