@Test public void getTechnologies() { Set<RequestTechnology> technologies = new HashSet<>(); technologies.add(RequestTechnology.builder().technology("python").weight(2L).build()); technologies.add(RequestTechnology.builder().technology("kotlin").weight(3L).build()); technologies.add(RequestTechnology.builder().technology("html").weight(4L).build()); technologies.add(RequestTechnology.builder().technology("css").weight(5L).build()); Request request = RequestMother.fundRequestArea51().withTechnologies(technologies).build(); assertThat(request.getTechnologies()).containsExactlyInAnyOrder("python", "kotlin", "html", "css"); }
public Set<String> getTechnologies() { return this.technologies != null && !this.technologies.isEmpty() ? this.technologies.stream() .map(RequestTechnology::getTechnology) .collect(Collectors.toSet()) : new HashSet<>(); }
Request extends AbstractEntity { public Set<String> getTechnologies() { return this.technologies != null && !this.technologies.isEmpty() ? this.technologies.stream() .map(RequestTechnology::getTechnology) .collect(Collectors.toSet()) : new HashSet<>(); } }
Request extends AbstractEntity { public Set<String> getTechnologies() { return this.technologies != null && !this.technologies.isEmpty() ? this.technologies.stream() .map(RequestTechnology::getTechnology) .collect(Collectors.toSet()) : new HashSet<>(); } protected  Request(); }
Request extends AbstractEntity { public Set<String> getTechnologies() { return this.technologies != null && !this.technologies.isEmpty() ? this.technologies.stream() .map(RequestTechnology::getTechnology) .collect(Collectors.toSet()) : new HashSet<>(); } protected  Request(); void setStatus(RequestStatus status); Long getId(); RequestStatus getStatus(); RequestType getType(); IssueInformation getIssueInformation(); void setIssueInformation(IssueInformation issueInformation); void addWatcher(String email); void removeWatcher(String email); Set<String> getWatchers(); void addTechnology(RequestTechnology requestTechnology); Set<String> getTechnologies(); @Override void setLastModifiedDate(final LocalDateTime lastModifiedDate); @Override boolean equals(Object o); @Override int hashCode(); }
Request extends AbstractEntity { public Set<String> getTechnologies() { return this.technologies != null && !this.technologies.isEmpty() ? this.technologies.stream() .map(RequestTechnology::getTechnology) .collect(Collectors.toSet()) : new HashSet<>(); } protected  Request(); void setStatus(RequestStatus status); Long getId(); RequestStatus getStatus(); RequestType getType(); IssueInformation getIssueInformation(); void setIssueInformation(IssueInformation issueInformation); void addWatcher(String email); void removeWatcher(String email); Set<String> getWatchers(); void addTechnology(RequestTechnology requestTechnology); Set<String> getTechnologies(); @Override void setLastModifiedDate(final LocalDateTime lastModifiedDate); @Override boolean equals(Object o); @Override int hashCode();  }