This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package pl.app; | |
| import org.springframework.boot.test.util.TestPropertyValues; | |
| import org.springframework.context.ApplicationContextInitializer; | |
| import org.springframework.context.ConfigurableApplicationContext; | |
| import org.testcontainers.containers.FixedHostPortGenericContainer; | |
| import org.testcontainers.containers.GenericContainer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var siteUrl = "http://www.example.com/"; | |
| function SetEditFieldIcon() { | |
| var imageUrl = siteUrl + 'styles/img/edit.png'; | |
| $("img[src*='edititem.gif'][alt='edit']").attr('src', imageUrl); | |
| } | |
| function createObserverForBrowser() { | |
| if (IsBrowserSupportMutationObserver()) { | |
| ObserverEditFieldIconForModernBrowsers(); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.HashSet; | |
| import java.util.List; | |
| import java.util.Set; | |
| import java.util.stream.Collectors; | |
| public class UtilEmail { | |
| public Set<String> getEmailsWithOneOccurence(List<Person> people) { | |
| List<String> emails = people.stream().map(Person::getEmail).collect(Collectors.toList()); | |
| Set<String> emailsUnique = new HashSet<>(); |