@Test public void emptyEnumSetToCsv() { Set<Permission> enumSet = Collections.emptySet(); String csv = OperationFactory.toOperationNameCsv(enumSet); assertThat(csv).isEqualTo(""); }
static String toOperationNameCsv(Set<Permission> operations) { return operations.stream() .map(Permission::name) .collect(Collectors.joining(",")); }
OperationFactory { static String toOperationNameCsv(Set<Permission> operations) { return operations.stream() .map(Permission::name) .collect(Collectors.joining(",")); } }
OperationFactory { static String toOperationNameCsv(Set<Permission> operations) { return operations.stream() .map(Permission::name) .collect(Collectors.joining(",")); } private  OperationFactory(); }
OperationFactory { static String toOperationNameCsv(Set<Permission> operations) { return operations.stream() .map(Permission::name) .collect(Collectors.joining(",")); } private  OperationFactory();  }
OperationFactory { static String toOperationNameCsv(Set<Permission> operations) { return operations.stream() .map(Permission::name) .collect(Collectors.joining(",")); } private  OperationFactory();   }