Interface MvcResultUtil


public interface MvcResultUtil
Utility class for extracting values from MvcResult.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static String
    extractIdFromLocation(org.springframework.test.web.servlet.MvcResult result)
    Extract the id from the HttpHeaders.LOCATION.
  • Method Details

    • extractIdFromLocation

      static String extractIdFromLocation(org.springframework.test.web.servlet.MvcResult result)
      Extract the id from the HttpHeaders.LOCATION.

      Note: The id is supposed to be in the last path of the location id according to the TOTVS API Guideline.
      Parameters:
      result - from the request.
      Returns:
      the value id in the HttpHeaders.LOCATION.
      See Also: