io.qameta.allure.entity.WithParametersNames Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-plugin-api Show documentation
Show all versions of allure-plugin-api Show documentation
Module allure-plugin-api of Allure Framework.
package io.qameta.allure.entity;
import java.util.List;
import java.util.stream.Collectors;
import static java.util.stream.Stream.concat;
/**
* @author charlie (Dmitry Baev).
*/
public interface WithParametersNames {
List getParametersNames();
void setParametersNames(List parameterNames);
default void updateParametersNames(List parameters) {
List updated = concat(getParametersNames().stream(), parameters.stream().map(Parameter::getName))
.distinct()
.collect(Collectors.toList());
setParametersNames(updated);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy