SnakerEngineFacets { public List<String> getAllProcessNames() { List<Process> list = engine.process().getProcesss(new QueryFilter()); List<String> names = new ArrayList<>(); for (Process entity : list) { if (names.contains(entity.getName())) { continue; } else { names.add(entity.getName()); } } return names; }  String initFlows(); List<Process> getAllProcess(); List<Process> getProcessByOrderId(String orderId); SnakerEngine getEngine(); List<String> getAllProcessNames(); Order startInstanceById(String processId, String operator, Map<String, Object> args); Order startInstanceByName(String name, Integer version, String operator, Map<String, Object> args); Order startAndExecute(String name, Integer version, String operator, Map<String, Object> args); Order startAndExecute(String processId, String operator, Map<String, Object> args); List<Task> execute(String taskId, String operator, Map<String, Object> args); List<Task> executeAndJump(String taskId, String operator, Map<String, Object> args, String nodeName); List<Task> getTasks(String orderId);  }
@Test public void getAllProcessNames() { List<String> allProcessNames = snakerEngineFacets.getAllProcessNames(); Assert.assertNotNull(allProcessNames); }