Class ExecutionConfig.BuilderSupport<T>

    • Field Detail

      • locale

        protected Locale locale
      • annotationCollectionEnabled

        protected boolean annotationCollectionEnabled
      • annotationCollectionFilter

        protected Predicate<String> annotationCollectionFilter
      • formatAssertionsEnabled

        protected Boolean formatAssertionsEnabled
      • failFast

        protected boolean failFast
      • readOnly

        protected Boolean readOnly
      • writeOnly

        protected Boolean writeOnly
    • Constructor Detail

      • BuilderSupport

        public BuilderSupport()
    • Method Detail

      • self

        protected abstract T self()
      • locale

        public T locale​(Locale locale)
        Sets the locale to use for formatting messages.
        Parameters:
        locale - the locale
        Returns:
        the builder
      • annotationCollectionEnabled

        public T annotationCollectionEnabled​(boolean annotationCollectionEnabled)
        Sets whether the annotation collection is enabled.

        This does not affect annotation collection required for evaluating keywords such as unevaluatedItems or unevaluatedProperties and only affects reporting.

        The annotations to collect can be customized using the annotation collection predicate.

        Parameters:
        annotationCollectionEnabled - true to enable annotation collection
        Returns:
        the builder
      • annotationCollectionFilter

        public T annotationCollectionFilter​(Predicate<String> annotationCollectionFilter)
        Predicate to determine if annotation collection is allowed for a particular keyword. This only has an effect if annotation collection is enabled.

        The default value is to not collect any annotation keywords if annotation collection is enabled.

        This does not affect annotation collection required for evaluating keywords such as unevaluatedItems or unevaluatedProperties and only affects reporting.

        Parameters:
        annotationCollectionFilter - the predicate accepting the keyword
        Returns:
        the builder
      • formatAssertionsEnabled

        public T formatAssertionsEnabled​(Boolean formatAssertionsEnabled)
        Sets the format assertion enabled flag.
        Parameters:
        formatAssertionsEnabled - the format assertions enabled flag
        Returns:
        the builder
      • failFast

        public T failFast​(boolean failFast)
        Sets whether fast fail is enabled.
        Parameters:
        failFast - true to fast fail
        Returns:
        the builder
      • readOnly

        public T readOnly​(Boolean readOnly)
      • writeOnly

        public T writeOnly​(Boolean writeOnly)