GenerateHubTDETemplateCommand extends GenerateModelArtifactsCommand { protected static Map<String,File> createEntityNameFileMap(List<File> entityFiles) { if (entityFiles==null) { return Collections.emptyMap(); } return entityFiles.stream().collect( toMap(extractEntityNameFunction(),Function.identity())); } GenerateHubTDETemplateCommand(HubConfig hubConfig); @Override void execute(CommandContext context); String getEntityNames(); void setEntityNames(String entityNames);  }
@Test public void testCreateEntityNameFileMapWithNoEntityFiles() { Map<String,File> entityNameFileMap = GenerateHubTDETemplateCommand.createEntityNameFileMap(null); assertEquals("Expected to find no entity files",0,entityNameFileMap.size()); entityNameFileMap = GenerateHubTDETemplateCommand.createEntityNameFileMap(new ArrayList<>()); assertEquals("Expected to find no entity files",0,entityNameFileMap.size()); }