@Test(expected=NullPointerException.class) public void findNodeNullArg() { getInst().findNode(null); }
public Node findNode(final String nodeName) { log.debug("findNode(\"{}\")", nodeName); checkNodeName(nodeName); Node node; if ("".equals(nodeName)) { node = getHudson(); } else { node = getHudson().getNode(nodeName); } if (node != null) { this.security.checkPermission(node, Permission.READ); } return node; }
NodeServiceImpl extends ServiceSupport implements NodeService { public Node findNode(final String nodeName) { log.debug("findNode(\"{}\")", nodeName); checkNodeName(nodeName); Node node; if ("".equals(nodeName)) { node = getHudson(); } else { node = getHudson().getNode(nodeName); } if (node != null) { this.security.checkPermission(node, Permission.READ); } return node; } }
NodeServiceImpl extends ServiceSupport implements NodeService { public Node findNode(final String nodeName) { log.debug("findNode(\"{}\")", nodeName); checkNodeName(nodeName); Node node; if ("".equals(nodeName)) { node = getHudson(); } else { node = getHudson().getNode(nodeName); } if (node != null) { this.security.checkPermission(node, Permission.READ); } return node; } @Inject  NodeServiceImpl(final SecurityService security); }
NodeServiceImpl extends ServiceSupport implements NodeService { public Node findNode(final String nodeName) { log.debug("findNode(\"{}\")", nodeName); checkNodeName(nodeName); Node node; if ("".equals(nodeName)) { node = getHudson(); } else { node = getHudson().getNode(nodeName); } if (node != null) { this.security.checkPermission(node, Permission.READ); } return node; } @Inject  NodeServiceImpl(final SecurityService security); Node getNode(String nodeName); Node findNode(final String nodeName); Node getMasterNode(); List<Node> getAllNodes(); List<Node> getNodes(); Node getCurrentNode(); }
NodeServiceImpl extends ServiceSupport implements NodeService { public Node findNode(final String nodeName) { log.debug("findNode(\"{}\")", nodeName); checkNodeName(nodeName); Node node; if ("".equals(nodeName)) { node = getHudson(); } else { node = getHudson().getNode(nodeName); } if (node != null) { this.security.checkPermission(node, Permission.READ); } return node; } @Inject  NodeServiceImpl(final SecurityService security); Node getNode(String nodeName); Node findNode(final String nodeName); Node getMasterNode(); List<Node> getAllNodes(); List<Node> getNodes(); Node getCurrentNode();  }