ru.tinkoff.gatling.javaapi.utils.RandomPhoneGenerator Maven / Gradle / Ivy
The newest version!
package ru.tinkoff.gatling.javaapi.utils;
import ru.tinkoff.gatling.utils.phone.*;
import java.util.List;
import static scala.jdk.javaapi.CollectionConverters.asScala;
public final class RandomPhoneGenerator {
private RandomPhoneGenerator(){}
public static String randomPhone(List formats, TypePhone.TypePhone typePhone){
return ru.tinkoff.gatling.utils.RandomPhoneGenerator.randomPhone(asScala(formats).toSeq(), typePhone);
}
public static String randomPhone(String pathToFormats, TypePhone.TypePhone typePhone){
return ru.tinkoff.gatling.utils.RandomPhoneGenerator.randomPhone(pathToFormats, typePhone);
}
}