use of com.ibm.cloud.sdk.core.security.NoAuthAuthenticator in project java-sdk by watson-developer-cloud.
the class VisualRecognitionTest method constructClientService.
public void constructClientService() throws Throwable {
final String serviceName = "testService";
// set mock values for global params
String version = "testString";
final Authenticator authenticator = new NoAuthAuthenticator();
visualRecognitionService = new VisualRecognition(version, serviceName, authenticator);
String url = server.url("/").toString();
visualRecognitionService.setServiceUrl(url);
}
use of com.ibm.cloud.sdk.core.security.NoAuthAuthenticator in project java-sdk by watson-developer-cloud.
the class DiscoveryTest method constructClientService.
// Constructs an instance of the service to be used by the tests
public void constructClientService() {
final String serviceName = "testService";
// set mock values for global params
String version = "testString";
final Authenticator authenticator = new NoAuthAuthenticator();
discoveryService = new Discovery(version, serviceName, authenticator);
String url = server.url("/").toString();
discoveryService.setServiceUrl(url);
}
use of com.ibm.cloud.sdk.core.security.NoAuthAuthenticator in project java-sdk by watson-developer-cloud.
the class AssistantTest method constructClientService.
// Constructs an instance of the service to be used by the tests
public void constructClientService() {
final String serviceName = "testService";
// set mock values for global params
String version = "testString";
final Authenticator authenticator = new NoAuthAuthenticator();
assistantService = new Assistant(version, serviceName, authenticator);
String url = server.url("/").toString();
assistantService.setServiceUrl(url);
}
use of com.ibm.cloud.sdk.core.security.NoAuthAuthenticator in project java-sdk by watson-developer-cloud.
the class SpeechToTextTest method constructClientService.
// Constructs an instance of the service to be used by the tests
public void constructClientService() {
final String serviceName = "testService";
final Authenticator authenticator = new NoAuthAuthenticator();
speechToTextService = new SpeechToText(serviceName, authenticator);
String url = server.url("/").toString();
speechToTextService.setServiceUrl(url);
}
use of com.ibm.cloud.sdk.core.security.NoAuthAuthenticator in project java-sdk by watson-developer-cloud.
the class TextToSpeechTest method constructClientService.
// Constructs an instance of the service to be used by the tests
public void constructClientService() {
final String serviceName = "testService";
final Authenticator authenticator = new NoAuthAuthenticator();
textToSpeechService = new TextToSpeech(serviceName, authenticator);
String url = server.url("/").toString();
textToSpeechService.setServiceUrl(url);
}
Aggregations