public TestCaseResult withAttachments(Collection<Attachment> values) { if (values!= null) { getAttachments().addAll(values); } return this; }
}); if (!source.getSteps().isEmpty() || !source.getAttachments().isEmpty()) { final StageResult testStage = new StageResult(); if (!source.getSteps().isEmpty()) { if (!source.getAttachments().isEmpty()) { testStage.setAttachments(convert(source.getAttachments(), at -> convert(directory, visitor, at)));
public TestCaseResult withAttachments(Attachment... values) { if (values!= null) { for (Attachment value: values) { getAttachments().add(value); } } return this; }
theAttachments = this.getAttachments(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attachments", theAttachments), currentHashCode, theAttachments);
lhsAttachments = this.getAttachments(); List<Attachment> rhsAttachments; rhsAttachments = that.getAttachments(); if (!strategy.equals(LocatorUtils.property(thisLocator, "attachments", lhsAttachments), LocatorUtils.property(thatLocator, "attachments", rhsAttachments), lhsAttachments, rhsAttachments)) { return false;
public void fire(TestCaseFinishedEvent event) { TestCaseResult testCase = testCaseStorage.get(); event.process(testCase); Step root = stepStorage.pollLast(); if (Status.PASSED.equals(testCase.getStatus())) { new RemoveAttachmentsEvent(AllureReportConfig.newInstance().getRemoveAttachments()).process(root); } testCase.getSteps().addAll(root.getSteps()); testCase.getAttachments().addAll(root.getAttachments()); stepStorage.remove(); testCaseStorage.remove(); }
/** * Process TestCaseFinishedEvent. Add steps and attachments from * top step from stepStorage to current testCase, then remove testCase * and step from stores. Also remove attachments matches removeAttachments * config. * * @param event to process */ public void fire(TestCaseFinishedEvent event) { TestCaseResult testCase = testCaseStorage.get(); event.process(testCase); Step root = stepStorage.pollLast(); if (Status.PASSED.equals(testCase.getStatus())) { new RemoveAttachmentsEvent(AllureConfig.newInstance().getRemoveAttachments()).process(root); } testCase.getSteps().addAll(root.getSteps()); testCase.getAttachments().addAll(root.getAttachments()); stepStorage.remove(); testCaseStorage.remove(); notifier.fire(event); }
}); if (!source.getSteps().isEmpty() || !source.getAttachments().isEmpty()) { final StageResult testStage = new StageResult(); if (!source.getSteps().isEmpty()) { if (!source.getAttachments().isEmpty()) { testStage.setAttachments(convert(source.getAttachments(), at -> convert(directory, visitor, at)));