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

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

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

import java.util.Collections;
import java.util.List;

import org.kohsuke.MetaInfServices;

import io.hyperfoil.api.config.Name;
import io.hyperfoil.api.config.Step;
import io.hyperfoil.api.session.Session;
import io.hyperfoil.api.config.StepBuilder;
import io.hyperfoil.core.builders.BaseStepBuilder;

/**
 * No functionality, just to demonstrate a service-loaded step.
 */
public class NoopStep implements Step {
   @Override
   public boolean invoke(Session session) {
      return true;
   }

   /**
    * Does nothing. Only for demonstration purposes.
    */
   @MetaInfServices(StepBuilder.class)
   @Name("noop")
   public static class Builder extends BaseStepBuilder {
      @Override
      public List build() {
         return Collections.singletonList(new NoopStep());
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy