public TestSuiteResult withLabels(Label... values) { if (values!= null) { for (Label value: values) { getLabels().add(value); } } return this; }
public TestSuiteResult withLabels(Collection<Label> values) { if (values!= null) { getLabels().addAll(values); } return this; }
final String testClass = firstNonNull( findLabelValue(source.getLabels(), TEST_CLASS.value()), findLabelValue(testSuite.getLabels(), TEST_CLASS.value()), testSuite.getName(), UNKNOWN .thenComparing(Label::getValue, nullsFirst(naturalOrder())) ); set.addAll(convert(testSuite.getLabels(), this::convert)); set.addAll(convert(source.getLabels(), this::convert)); dest.setLabels(new ArrayList<>(set));
theLabels = this.getLabels(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "labels", theLabels), currentHashCode, theLabels);
/** * Process TestSuiteFinishedEvent. Using event.getUid() to access testSuite. * Then remove this suite from storage and marshal testSuite to xml using * AllureResultsUtils.writeTestSuiteResult() * * @param event to process */ public void fire(TestSuiteFinishedEvent event) { String suiteUid = event.getUid(); TestSuiteResult testSuite = testSuiteStorage.remove(suiteUid); if (testSuite == null) { return; } event.process(testSuite); testSuite.setVersion(getVersion()); testSuite.getLabels().add(AllureModelUtils.createProgrammingLanguageLabel()); writeTestSuiteResult(testSuite); notifier.fire(event); }
final String testClass = firstNonNull( findLabelValue(source.getLabels(), TEST_CLASS.value()), findLabelValue(testSuite.getLabels(), TEST_CLASS.value()), testSuite.getName(), UNKNOWN .thenComparing(Label::getValue, nullsFirst(naturalOrder())) ); set.addAll(convert(testSuite.getLabels(), this::convert)); set.addAll(convert(source.getLabels(), this::convert)); dest.setLabels(new ArrayList<>(set));