private List<ru.yandex.qatools.allure.model.Parameter> getEnvironmentParameters(final TestCaseResult testCase) { return testCase.getParameters().stream().filter(this::hasEnvType).collect(toList()); }
private List<Parameter> getParameters(final TestCaseResult source) { final TreeSet<Parameter> parametersSet = new TreeSet<>( comparing(Parameter::getName, nullsFirst(naturalOrder())) .thenComparing(Parameter::getValue, nullsFirst(naturalOrder())) ); parametersSet.addAll(convert(source.getParameters(), this::hasArgumentType, this::convert)); return new ArrayList<>(parametersSet); }
public TestCaseResult withParameters(Collection<Parameter> values) { if (values!= null) { getParameters().addAll(values); } return this; }
public TestCaseResult withParameters(Parameter... values) { if (values!= null) { for (Parameter value: values) { getParameters().add(value); } } return this; }
private List<ru.yandex.qatools.allure.model.Parameter> getEnvironmentParameters(final TestCaseResult testCase) { return testCase.getParameters().stream().filter(this::hasEnvType).collect(toList()); }
private List<Parameter> getParameters(final TestCaseResult source) { final TreeSet<Parameter> parametersSet = new TreeSet<>( comparing(Parameter::getName, nullsFirst(naturalOrder())) .thenComparing(Parameter::getValue, nullsFirst(naturalOrder())) ); parametersSet.addAll(convert(source.getParameters(), this::hasArgumentType, this::convert)); return new ArrayList<>(parametersSet); }
@Override public void process(TestCaseResult context) { context.getParameters().add(new Parameter() .withName(getName()) .withValue(getValue()) .withKind(ParameterKind.ENVIRONMENT_VARIABLE) ); } }
lhsParameters = this.getParameters(); List<Parameter> rhsParameters; rhsParameters = that.getParameters(); if (!strategy.equals(LocatorUtils.property(thisLocator, "parameters", lhsParameters), LocatorUtils.property(thatLocator, "parameters", rhsParameters), lhsParameters, rhsParameters)) { return false;
theParameters = this.getParameters(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parameters", theParameters), currentHashCode, theParameters);
/** * Add parameter to testCase * * @param context which can be changed */ @Override public void process(TestCaseResult context) { context.getParameters().add(new Parameter() .withName(getName()) .withValue(getValue()) .withKind(ParameterKind.valueOf(getKind())) ); } }