ru.qatools.gridrouter.config.WithHosts Maven / Gradle / Ivy
package ru.qatools.gridrouter.config;
import java.util.List;
import static java.util.stream.Collectors.toList;
/**
* @author Dmitry Baev [email protected]
* @author Innokenty Shuvalov [email protected]
*/
public interface WithHosts {
default List getHosts() {
return getBrowsers().stream()
.flatMap(b -> b.getVersions().stream())
.flatMap(v -> v.getRegions().stream())
.flatMap(r -> r.getHosts().stream())
.collect(toList());
}
List getBrowsers();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy