// Path: src/test/functional/java/org/nameapi/client/services/FunctionalTestsNameApiModeFactory.java
// public class FunctionalTestsNameApiModeFactory extends NameApiModeFactory {
// 
//     //Developer: set your api key here. It looks something like this:
//     //private static final String API_KEY = "32d21gc5071d7463ef6064c07ea98cb2-user1";
//     private static final String API_KEY = null;
// 
//     private static final Mode unitTestMode = withContext(API_KEY, makeContext(),
//             //the default and live server is "api.nameapi.org"
//             //we're using the latest release candidate with latest features here:
//             new Host("rc50-api.nameapi.org", 80), NameApiPortUrlFactory.versionLatestStable())
// 
//             //.with(TimeoutExtension.TIMEOUT, Duration.millis(5000))
//             .with(StdoutLoggingExtension.enabled())
//     ;
// 
//     private static Context makeContext() {
//         if (API_KEY==null) {
//             throw new RuntimeException("Set the api key variable to run the functional tests (get it from nameapi.org)!");
//         }
//         return new ContextBuilder()
//                 .priority(Priority.REALTIME)
//         .build();
//     }
// 
//     @NotNull
//     public static Mode functionalTest() {
//         return unitTestMode;
//     }
// 
// }
// 
// Path: src/main/java/org/nameapi/client/lib/NameApiRemoteExecutors.java
// public final class NameApiRemoteExecutors {
// 
//     private static final CommandExecutor SAME = create();
// 
//     public static CommandExecutor create() {
//         return new CommandExecutorBuilder()
//                 .withExtension(new TimeoutExtension())
//                 .withExtension(new StdoutLoggingExtension())
//                 .withExtension(new ExceptionTranslationExtension())
//                 .withExtension(new AutoRetryExtension())
//                 .build();
//         //could add name-api specific extensions here ...
//     }
// 
//     /**
//      * @return Always the same, immutable executor.
//      */
//     public static CommandExecutor get() {
//         return SAME;
//     }
// 
// }
// 
// Path: src/main/java/org/nameapi/client/services/validator/randomtyping/RandomTypingResult.java
// public class RandomTypingResult {
// }


import com.optimaize.command4j.CommandExecutor;
import com.optimaize.command4j.Mode;
import org.nameapi.client.services.FunctionalTestsNameApiModeFactory;
import org.nameapi.client.lib.NameApiRemoteExecutors;
import org.nameapi.client.services.validator.randomtyping.RandomTypingResult;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import static org.testng.Assert.assertTrue;
package org.nameapi.client.services.validator.randomtyping.givennamerandomtypingdetector;



/**
 * Service currently not available as public API.
 */
public class GivenNameRandomTypingDetectorCommandTest {

    private final CommandExecutor executor = NameApiRemoteExecutors.get();

//    @Test(dataProvider="testSome")
    public void testSome(String name, int minIncl, int maxIncl) throws Exception {
        GivenNameRandomTypingDetectorCommand command = new GivenNameRandomTypingDetectorCommand();
        Mode mode = FunctionalTestsNameApiModeFactory.functionalTest();
// Path: src/test/functional/java/org/nameapi/client/services/FunctionalTestsNameApiModeFactory.java
// public class FunctionalTestsNameApiModeFactory extends NameApiModeFactory {
// 
//     //Developer: set your api key here. It looks something like this:
//     //private static final String API_KEY = "32d21gc5071d7463ef6064c07ea98cb2-user1";
//     private static final String API_KEY = null;
// 
//     private static final Mode unitTestMode = withContext(API_KEY, makeContext(),
//             //the default and live server is "api.nameapi.org"
//             //we're using the latest release candidate with latest features here:
//             new Host("rc50-api.nameapi.org", 80), NameApiPortUrlFactory.versionLatestStable())
// 
//             //.with(TimeoutExtension.TIMEOUT, Duration.millis(5000))
//             .with(StdoutLoggingExtension.enabled())
//     ;
// 
//     private static Context makeContext() {
//         if (API_KEY==null) {
//             throw new RuntimeException("Set the api key variable to run the functional tests (get it from nameapi.org)!");
//         }
//         return new ContextBuilder()
//                 .priority(Priority.REALTIME)
//         .build();
//     }
// 
//     @NotNull
//     public static Mode functionalTest() {
//         return unitTestMode;
//     }
// 
// }
// 
// Path: src/main/java/org/nameapi/client/lib/NameApiRemoteExecutors.java
// public final class NameApiRemoteExecutors {
// 
//     private static final CommandExecutor SAME = create();
// 
//     public static CommandExecutor create() {
//         return new CommandExecutorBuilder()
//                 .withExtension(new TimeoutExtension())
//                 .withExtension(new StdoutLoggingExtension())
//                 .withExtension(new ExceptionTranslationExtension())
//                 .withExtension(new AutoRetryExtension())
//                 .build();
//         //could add name-api specific extensions here ...
//     }
// 
//     /**
//      * @return Always the same, immutable executor.
//      */
//     public static CommandExecutor get() {
//         return SAME;
//     }
// 
// }
// 
// Path: src/main/java/org/nameapi/client/services/validator/randomtyping/RandomTypingResult.java
// public class RandomTypingResult {
// }


// Path: src/test/functional/java/org/nameapi/client/services/validator/randomtyping/givennamerandomtypingdetector/GivenNameRandomTypingDetectorCommandTest.java
import com.optimaize.command4j.CommandExecutor;
import com.optimaize.command4j.Mode;
import org.nameapi.client.services.FunctionalTestsNameApiModeFactory;
import org.nameapi.client.lib.NameApiRemoteExecutors;
import org.nameapi.client.services.validator.randomtyping.RandomTypingResult;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import static org.testng.Assert.assertTrue;

package org.nameapi.client.services.validator.randomtyping.givennamerandomtypingdetector;



/**
 * Service currently not available as public API.
 */
public class GivenNameRandomTypingDetectorCommandTest {

    private final CommandExecutor executor = NameApiRemoteExecutors.get();

//    @Test(dataProvider="testSome")
    public void testSome(String name, int minIncl, int maxIncl) throws Exception {
        GivenNameRandomTypingDetectorCommand command = new GivenNameRandomTypingDetectorCommand();
        Mode mode = FunctionalTestsNameApiModeFactory.functionalTest();
        RandomTypingResult result = executor.execute(command, mode, name).get();