Interface StepVerifier


public interface StepVerifier
Provides the ability to verify expectations on asynchronous sources.
  • Method Summary

    Modifier and Type
    Method
    Description
    Verify the none of the previously declared expectations are violated.
    verify(Duration duration)
    Verify the none of the previously declared expectations are violated.
  • Method Details

    • verify

      Duration verify() throws AssertionError
      Verify the none of the previously declared expectations are violated.

      This method will trigger a subscribe on the asynchronous source.

      Returns:
      The amount of time the declared expectations took to complete.
      Throws:
      AssertionError - if any of the declared expectations fail.
    • verify

      Duration verify(Duration duration) throws AssertionError
      Verify the none of the previously declared expectations are violated.

      This method will trigger a subscribe on the asynchronous source.

      Parameters:
      duration - The amount of time to wait while executing declared expectations.
      Returns:
      The amount of time the declared expectations took to complete.
      Throws:
      AssertionError - if any of the declared expectations fail, or if the duration expires.