Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 02d3fb3

Browse files
authored
Merge pull request #102 from reportportal/develop
Release
2 parents b20a41c + e075132 commit 02d3fb3

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Changed
5+
- Client version updated on [5.2.13](https://github.com/reportportal/client-java/releases/tag/5.2.13), by @HardNorth
46

57
## [5.2.2]
68
### Changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repositories {
3737
}
3838

3939
dependencies {
40-
api 'com.epam.reportportal:client-java:5.2.11'
40+
api 'com.epam.reportportal:client-java:5.2.13'
4141
api 'info.cukes:gherkin:2.12.2'
4242

4343
implementation 'org.slf4j:slf4j-api:2.0.7'

src/main/java/com/epam/reportportal/cucumber/AbstractReporter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import com.epam.reportportal.service.tree.TestItemTree;
2727
import com.epam.reportportal.utils.*;
2828
import com.epam.reportportal.utils.files.ByteSource;
29+
import com.epam.reportportal.utils.http.ContentType;
2930
import com.epam.reportportal.utils.properties.SystemAttributesExtractor;
3031
import com.epam.ta.reportportal.ws.model.FinishExecutionRQ;
3132
import com.epam.ta.reportportal.ws.model.FinishTestItemRQ;
@@ -569,7 +570,7 @@ private static String getDataType(@Nonnull byte[] data) {
569570
*/
570571
@Override
571572
public void embedding(String mimeType, byte[] data) {
572-
String type = ofNullable(mimeType).filter(m -> m.contains("/")).orElseGet(() -> getDataType(data));
573+
String type = ofNullable(mimeType).filter(ContentType::isValidType).orElseGet(() -> getDataType(data));
573574
String attachmentName = ofNullable(type).map(t -> t.substring(0, t.indexOf("/"))).orElse("");
574575
ReportPortal.emitLog(new ReportPortalMessage(ByteSource.wrap(data), type, attachmentName),
575576
"UNKNOWN",

src/test/java/com/epam/reportportal/cucumber/integration/callback/scenario/CallbackReportingSteps.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ private void sendFinishRequest(TestItemTree.TestItemLeaf testResultLeaf, String
6464
finishTestItemRQ.setDescription(description);
6565
finishTestItemRQ.setStatus(status);
6666
finishTestItemRQ.setEndTime(Calendar.getInstance().getTime());
67+
//noinspection ResultOfMethodCallIgnored
6768
ItemTreeReporter.finishItem(AbstractReporter.getReportPortal().getClient(),
6869
finishTestItemRQ,
6970
AbstractReporter.ITEM_TREE.getLaunchId(),

src/test/java/com/epam/reportportal/cucumber/integration/callback/step/CallbackReportingSteps.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ private void sendFinishRequest(TestItemTree.TestItemLeaf testResultLeaf, String
6565
finishTestItemRQ.setDescription(description);
6666
finishTestItemRQ.setStatus(status);
6767
finishTestItemRQ.setEndTime(Calendar.getInstance().getTime());
68+
//noinspection ResultOfMethodCallIgnored
6869
ItemTreeReporter.finishItem(AbstractReporter.getReportPortal().getClient(),
6970
finishTestItemRQ,
7071
AbstractReporter.ITEM_TREE.getLaunchId(),

0 commit comments

Comments
 (0)