Search in sources :

Example 6 with NoAuthAuthenticator

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);
}
Also used : NoAuthAuthenticator(com.ibm.cloud.sdk.core.security.NoAuthAuthenticator) NoAuthAuthenticator(com.ibm.cloud.sdk.core.security.NoAuthAuthenticator) Authenticator(com.ibm.cloud.sdk.core.security.Authenticator)

Example 7 with NoAuthAuthenticator

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);
}
Also used : NoAuthAuthenticator(com.ibm.cloud.sdk.core.security.NoAuthAuthenticator) Authenticator(com.ibm.cloud.sdk.core.security.Authenticator) NoAuthAuthenticator(com.ibm.cloud.sdk.core.security.NoAuthAuthenticator)

Example 8 with NoAuthAuthenticator

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);
}
Also used : NoAuthAuthenticator(com.ibm.cloud.sdk.core.security.NoAuthAuthenticator) NoAuthAuthenticator(com.ibm.cloud.sdk.core.security.NoAuthAuthenticator) Authenticator(com.ibm.cloud.sdk.core.security.Authenticator)

Example 9 with NoAuthAuthenticator

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);
}
Also used : NoAuthAuthenticator(com.ibm.cloud.sdk.core.security.NoAuthAuthenticator) NoAuthAuthenticator(com.ibm.cloud.sdk.core.security.NoAuthAuthenticator) Authenticator(com.ibm.cloud.sdk.core.security.Authenticator)

Example 10 with NoAuthAuthenticator

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);
}
Also used : NoAuthAuthenticator(com.ibm.cloud.sdk.core.security.NoAuthAuthenticator) NoAuthAuthenticator(com.ibm.cloud.sdk.core.security.NoAuthAuthenticator) Authenticator(com.ibm.cloud.sdk.core.security.Authenticator)

Aggregations

NoAuthAuthenticator (com.ibm.cloud.sdk.core.security.NoAuthAuthenticator)20 Authenticator (com.ibm.cloud.sdk.core.security.Authenticator)14 Test (org.testng.annotations.Test)5 Request (okhttp3.Request)4 HttpUrl (okhttp3.HttpUrl)3 Collection (com.ibm.watson.discovery.v1.model.Collection)1 Configuration (com.ibm.watson.discovery.v1.model.Configuration)1 CreateEventResponse (com.ibm.watson.discovery.v1.model.CreateEventResponse)1 Credentials (com.ibm.watson.discovery.v1.model.Credentials)1 CredentialsList (com.ibm.watson.discovery.v1.model.CredentialsList)1 DeleteCollectionResponse (com.ibm.watson.discovery.v1.model.DeleteCollectionResponse)1 DeleteConfigurationResponse (com.ibm.watson.discovery.v1.model.DeleteConfigurationResponse)1 DeleteCredentials (com.ibm.watson.discovery.v1.model.DeleteCredentials)1 DeleteDocumentResponse (com.ibm.watson.discovery.v1.model.DeleteDocumentResponse)1 DeleteEnvironmentResponse (com.ibm.watson.discovery.v1.model.DeleteEnvironmentResponse)1 DocumentAccepted (com.ibm.watson.discovery.v1.model.DocumentAccepted)1 DocumentStatus (com.ibm.watson.discovery.v1.model.DocumentStatus)1 Environment (com.ibm.watson.discovery.v1.model.Environment)1 Expansions (com.ibm.watson.discovery.v1.model.Expansions)1 Gateway (com.ibm.watson.discovery.v1.model.Gateway)1