Class SelectorResolutionResult


  • @API(status=EXPERIMENTAL,
         since="1.6")
    public class SelectorResolutionResult
    extends java.lang.Object
    SelectorResolutionResult encapsulates the result of resolving a DiscoverySelector by a TestEngine.

    A SelectorResolutionResult consists of a mandatory Status and an optional Throwable.

    Since:
    1.6
    • Method Detail

      • resolved

        public static SelectorResolutionResult resolved()
        Create a SelectorResolutionResult for a resolved selector.
        Returns:
        the SelectorResolutionResult; never null
      • unresolved

        public static SelectorResolutionResult unresolved()
        Create a SelectorResolutionResult for an unresolved selector.
        Returns:
        the SelectorResolutionResult; never null
      • failed

        public static SelectorResolutionResult failed​(java.lang.Throwable throwable)
        Create a SelectorResolutionResult for a failed selector resolution.
        Returns:
        the SelectorResolutionResult; never null
      • getThrowable

        public java.util.Optional<java.lang.Throwable> getThrowable()
        Get the throwable that caused this result, if available.
        Returns:
        an Optional containing the throwable; never null but potentially empty
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object