Class APIUtil

java.lang.Object
de.qytera.qtaf.testrail.utils.APIUtil

public class APIUtil extends Object
Utility class for handling TestRail multipart attachments.
  • 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 attach
      attachmentConsumer - the consumer using the attachment entity
      Throws:
      ParseException - if the file cannot be processed
      See Also: