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

io.hyperfoil.core.steps.AwaitConditionStep Maven / Gradle / Ivy

There is a newer version: 0.27.1
Show newest version
package io.hyperfoil.core.steps;

import java.util.function.Predicate;

import io.hyperfoil.api.config.Step;
import io.hyperfoil.api.session.Session;

public class AwaitConditionStep implements Step {
   private final Predicate condition;

   public AwaitConditionStep(Predicate condition) {
      this.condition = condition;
   }

   @Override
   public boolean invoke(Session session) {
      return condition.test(session);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy