Interface ExtensionPoints<SELF extends ExtensionPoints<SELF,​ACTUAL>,​ACTUAL>

    • Method Detail

      • is

        SELF is​(Condition<? super ACTUAL> condition)
        Verifies that the actual value satisfies the given condition. This method is an alias for has(Condition).
        Parameters:
        condition - the given condition.
        Returns:
        this ExtensionPoints object.
        Throws:
        NullPointerException - if the given condition is null.
        AssertionError - if the actual value does not satisfy the given condition.
        See Also:
        has(Condition)
      • has

        SELF has​(Condition<? super ACTUAL> condition)
        Verifies that the actual value satisfies the given condition. This method is an alias for is(Condition) .
        Parameters:
        condition - the given condition.
        Returns:
        this ExtensionPoints object.
        Throws:
        NullPointerException - if the given condition is null.
        AssertionError - if the actual value does not satisfy the given condition.
        See Also:
        is(Condition)
      • doesNotHave

        SELF doesNotHave​(Condition<? super ACTUAL> condition)
        Verifies that the actual value does not satisfy the given condition. This method is an alias for isNot(Condition).
        Parameters:
        condition - the given condition.
        Returns:
        this ExtensionPoints object.
        Throws:
        NullPointerException - if the given condition is null.
        AssertionError - if the actual value satisfies the given condition.
        See Also:
        isNot(Condition)
      • satisfies

        SELF satisfies​(Condition<? super ACTUAL> condition)
        Verifies that the actual value satisfies the given condition. This method is an alias for is(Condition).

        Example:

         // Given
         Condition<String> fairyTale = new Condition<>(s -> s.startsWith("Once upon a time"), "fairy tale start");
         // When
         String littleRedCap = "Once upon a time there was a dear little girl ...";
         // Then
         assertThat(littleRedCap).satisfies(fairyTale);
        Parameters:
        condition - the given condition.
        Returns:
        this ExtensionPoints object.
        Throws:
        NullPointerException - if the given condition is null.
        AssertionError - if the actual value does not satisfy the given condition.
        Since:
        3.11
        See Also:
        is(Condition)