Interface StepVerifier
-
public interface StepVerifierProvides the ability to verify expectations on asynchronous sources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.Durationverify()Verify the none of the previously declared expectations are violated.java.time.Durationverify(java.time.Duration duration)Verify the none of the previously declared expectations are violated.
-
-
-
Method Detail
-
verify
java.time.Duration verify() throws java.lang.AssertionErrorVerify 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:
java.lang.AssertionError- if any of the declared expectations fail.
-
verify
java.time.Duration verify(java.time.Duration duration) throws java.lang.AssertionErrorVerify 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:
java.lang.AssertionError- if any of the declared expectations fail, or if thedurationexpires.
-
-