File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/test/functional/java/org/nameapi/client/services Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11package org .nameapi .client .services ;
22
3+ import com .optimaize .anythingworks .common .host .Host ;
34import com .optimaize .command4j .Mode ;
45import com .optimaize .command4j .ext .extensions .logging .stdoutlogging .StdoutLoggingExtension ;
56import org .jetbrains .annotations .NotNull ;
67import org .nameapi .client .lib .NameApiModeFactory ;
8+ import org .nameapi .client .lib .NameApiPortUrlFactory ;
79import org .nameapi .ontology5 .input .context .Context ;
810import org .nameapi .ontology5 .input .context .ContextBuilder ;
911import org .nameapi .ontology5 .input .context .Priority ;
@@ -17,7 +19,11 @@ public class FunctionalTestsNameApiModeFactory extends NameApiModeFactory {
1719 //private static final String API_KEY = "32d21gc5071d7463ef6064c07ea98cb2-user1";
1820 private static final String API_KEY = null ;
1921
20- private static final Mode unitTestMode = withContext (API_KEY , makeContext ())
22+ private static final Mode unitTestMode = withContext (API_KEY , makeContext (),
23+ //the default and live server is "api.nameapi.org"
24+ //we're using the latest release candidate with latest features here:
25+ new Host ("rc50-api.nameapi.org" , 80 ), NameApiPortUrlFactory .versionLatestStable ())
26+
2127 //.with(TimeoutExtension.TIMEOUT, Duration.millis(5000))
2228 .with (StdoutLoggingExtension .enabled ())
2329 ;
You can’t perform that action at this time.
0 commit comments