@Test void testCompile_unknownTask() { Node node = createNode("node-1", ImmutableList.of(START_NODE_ID)); RuntimeException exception = assertThrows( RuntimeException.class, () -> ExecutionNodeCompiler.compile(node, Collections.emptyMap())); assertEquals("Couldn't find task named: [unknownTask]", exception.getMessage()); }
static List<ExecutionNode> compile(List<Node> nodes, Map<String, RunnableTask> runnableTasks) { List<ExecutionNode> executableNodes = nodes.stream().map(node -> compile(node, runnableTasks)).collect(Collectors.toList()); return sort(executableNodes); }
ExecutionNodeCompiler { static List<ExecutionNode> compile(List<Node> nodes, Map<String, RunnableTask> runnableTasks) { List<ExecutionNode> executableNodes = nodes.stream().map(node -> compile(node, runnableTasks)).collect(Collectors.toList()); return sort(executableNodes); } }
ExecutionNodeCompiler { static List<ExecutionNode> compile(List<Node> nodes, Map<String, RunnableTask> runnableTasks) { List<ExecutionNode> executableNodes = nodes.stream().map(node -> compile(node, runnableTasks)).collect(Collectors.toList()); return sort(executableNodes); }  }
ExecutionNodeCompiler { static List<ExecutionNode> compile(List<Node> nodes, Map<String, RunnableTask> runnableTasks) { List<ExecutionNode> executableNodes = nodes.stream().map(node -> compile(node, runnableTasks)).collect(Collectors.toList()); return sort(executableNodes); }   }
ExecutionNodeCompiler { static List<ExecutionNode> compile(List<Node> nodes, Map<String, RunnableTask> runnableTasks) { List<ExecutionNode> executableNodes = nodes.stream().map(node -> compile(node, runnableTasks)).collect(Collectors.toList()); return sort(executableNodes); }    }