Interface DslPropertyConverter


  • public interface DslPropertyConverter
    A hook mechanism to allow external languages and frameworks to convert types that are not in Java for Spring Cloud Contract to understand.
    Since:
    2.2.0
    Author:
    Marcin Grzejszczak
    • Field Detail

      • INSTANCE

        static final DslPropertyConverter INSTANCE
        A composite over available instances or default if none is present.
    • Method Detail

      • testSide

        default Object testSide​(Object object)
        Conversion mechanism for the test side manipulation.
        Parameters:
        object - object to manipulate
        Returns:
        converted object for the test side
      • stubSide

        default Object stubSide​(Object object)
        Conversion mechanism for the stub side manipulation.
        Parameters:
        object - object to manipulate
        Returns:
        converted object for the stub side