public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { String theValue; theValue = this.getValue(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue); } { ParameterKind theKind; theKind = this.getKind(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kind", theKind), currentHashCode, theKind); } return currentHashCode; }
/** * Create an instance of {@link Parameter } * */ public Parameter createParameter() { return new Parameter(); }
public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
lhsName = this.getName(); String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) { return false; lhsValue = this.getValue(); String rhsValue; rhsValue = that.getValue(); if (!strategy.equals(LocatorUtils.property(thisLocator, "value", lhsValue), LocatorUtils.property(thatLocator, "value", rhsValue), lhsValue, rhsValue)) { return false; lhsKind = this.getKind(); ParameterKind rhsKind; rhsKind = that.getKind(); if (!strategy.equals(LocatorUtils.property(thisLocator, "kind", lhsKind), LocatorUtils.property(thatLocator, "kind", rhsKind), lhsKind, rhsKind)) { return false;
@Override public void readResults(final Configuration configuration, final ResultsVisitor visitor, final Path resultsDirectory) { final Properties allureProperties = loadAllureProperties(resultsDirectory); final RandomUidContext context = configuration.requireContext(RandomUidContext.class); final Map<String, String> environment = processEnvironment(resultsDirectory); getStreamOfAllure1Results(resultsDirectory).forEach(testSuite -> testSuite.getTestCases() .forEach(testCase -> { convert(context.getValue(), resultsDirectory, visitor, testSuite, testCase, allureProperties); getEnvironmentParameters(testCase).forEach(param -> environment.put(param.getName(), param.getValue()) ); }) ); visitor.visitExtra(ENVIRONMENT_BLOCK_NAME, environment); }
private boolean hasEnvType(final ru.yandex.qatools.allure.model.Parameter parameter) { return ParameterKind.ENVIRONMENT_VARIABLE.equals(parameter.getKind()); }
@Override public void readResults(final Configuration configuration, final ResultsVisitor visitor, final Path resultsDirectory) { final Properties allureProperties = loadAllureProperties(resultsDirectory); final RandomUidContext context = configuration.requireContext(RandomUidContext.class); final Map<String, String> environment = processEnvironment(resultsDirectory); getStreamOfAllure1Results(resultsDirectory).forEach(testSuite -> testSuite.getTestCases() .forEach(testCase -> { convert(context.getValue(), resultsDirectory, visitor, testSuite, testCase, allureProperties); getEnvironmentParameters(testCase).forEach(param -> environment.put(param.getName(), param.getValue()) ); }) ); visitor.visitExtra(ENVIRONMENT_BLOCK_NAME, environment); }
private boolean hasEnvType(final ru.yandex.qatools.allure.model.Parameter parameter) { return ParameterKind.ENVIRONMENT_VARIABLE.equals(parameter.getKind()); }