All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.joala.condition.package.html Maven / Gradle / Ivy





  net.joala.condition

Conditions to be used during testing. A condition knows how to get the state of an element to verify and can perform verifications on this element if a requested state is reached.

The central interface is {@link net.joala.condition.Condition}. All class implementing this interface should also implement {@link net.joala.condition.FailSafeCondition}. This interface is hidden at first glance to represent a small API to the condition users. Typically those building conditions will need the interface {@link net.joala.condition.FailSafeCondition} to configure the behavior of the condition.

Fail Strategies

Conditions provide three ways to fail which refer to JUnit failure states skipped, failed and error:

  • Assume: marks tests as skipped on failure,
  • Assert: marks tests as failed on failure,
  • WaitUntil: marks tests as error on failure.

Sketch of Condition-Expression-Matcher-Triad:





© 2015 - 2025 Weber Informatics LLC | Privacy Policy