Package de.qytera.qtaf.testrail.utils
Class APIUtil
java.lang.Object
de.qytera.qtaf.testrail.utils.APIUtil
Utility class for handling TestRail multipart attachments.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconsumeAttachment(String filePath, Consumer<jakarta.ws.rs.client.Entity<org.glassfish.jersey.media.multipart.MultiPart>> attachmentConsumer) Converts a file into a multipart attachment entity and passes the entity to the provided consumer.
-
Method Details
-
consumeAttachment
public static void consumeAttachment(String filePath, Consumer<jakarta.ws.rs.client.Entity<org.glassfish.jersey.media.multipart.MultiPart>> attachmentConsumer) throws ParseException Converts a file into a multipart attachment entity and passes the entity to the provided consumer.- Parameters:
filePath- the file to attachattachmentConsumer- the consumer using the attachment entity- Throws:
ParseException- if the file cannot be processed- See Also:
-