Class XrayJsonHelper

java.lang.Object
de.qytera.qtaf.xray.builder.XrayJsonHelper

public class XrayJsonHelper extends Object
Utility class for transforming data into objects compatible with Xray's REST APIs.
  • Method Details

    • isoDateString

      public static String isoDateString(Date date)
      Transforms a Date into a string compatible with Xray's REST API.
      Parameters:
      date - the date to transform
      Returns:
      the corresponding string
    • truncateParameterName

      public static String truncateParameterName(String parameterName)
      Truncates an XrayIterationParameterEntity's parameter name to the maximum allowed length. Returns the unmodified string in case its length is less than the maximum allowed length.
      Parameters:
      parameterName - the name to truncate
      Returns:
      the truncated or unmodified parameter name
    • truncateParameterValue

      public static String truncateParameterValue(String parameterValue)
      Truncates an XrayIterationParameterEntity's parameter value to the maximum allowed length. Returns the unmodified string in case its length is less than the maximum allowed length.
      Parameters:
      parameterValue - the value to truncate
      Returns:
      the truncated or unmodified parameter value