io.github.fherbreteau.gatling.ftp.javaapi.FtpDsl Maven / Gradle / Ivy
The newest version!
package io.github.fherbreteau.gatling.ftp.javaapi;
import io.gatling.javaapi.core.Session;
import io.gatling.javaapi.core.internal.Expressions;
import io.github.fherbreteau.gatling.ftp.javaapi.protocol.FtpProtocolBuilder;
import javax.annotation.Nonnull;
import java.util.function.Function;
public class FtpDsl {
public static final FtpProtocolBuilder ftp =
new FtpProtocolBuilder(io.github.fherbreteau.gatling.ftp.protocol.FtpProtocolBuilder.apply(
io.gatling.core.Predef.configuration()));
private FtpDsl() {
}
@Nonnull
public static Ftp ftp(@Nonnull String name) {
return new Ftp(Expressions.toStringExpression(name));
}
@Nonnull
public static Ftp ftp(@Nonnull Function name) {
return new Ftp(Expressions.javaFunctionToExpression(name));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy