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

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy