public static Set<Label> getProvidedLabels() { final Properties properties = loadAllureProperties(); final Set<String> propertyNames = properties.stringPropertyNames(); return propertyNames.stream() .filter(name -> name.startsWith("allure.label.")) .map(name -> { final String labelName = name.substring(13); final String labelValue = properties.getProperty(name); return new Label() .setName(labelName) .setValue(labelValue); }) .filter(label -> nonNull(label.getValue())) .collect(Collectors.toSet()); }
public Label withName(String value) { setName(value); return this; }
public Label withValue(String value) { setValue(value); return this; }
/** * Create an instance of {@link Label } * */ public Label createLabel() { return new Label(); }
public Label withName(String value) { setName(value); return this; }
public Label withValue(String value) { setValue(value); return this; }
/** * Create an instance of {@link Label } * */ public Label createLabel() { return new Label(); }
/** * @deprecated use set method */ @Deprecated public Label withName(final String value) { return setName(value); }
/** * @deprecated use set method */ @Deprecated public Label withValue(final String value) { return setValue(value); } }