use of com.ibm.cloud.sdk.core.security.NoAuthAuthenticator in project cloudant-java-sdk by IBM.
the class ValidationTest method validatesStripTrailingSlash.
@Test
void validatesStripTrailingSlash() {
CloudantBaseService cloudantBaseService = new CloudantBaseService(null, new NoAuthAuthenticator()) {
};
cloudantBaseService.setServiceUrl("https://cloudant.example/");
assertEquals(cloudantBaseService.getServiceUrl(), "https://cloudant.example");
}
use of com.ibm.cloud.sdk.core.security.NoAuthAuthenticator in project java-sdk by watson-developer-cloud.
the class ToneAnalyzerTest 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();
toneAnalyzerService = new ToneAnalyzer(version, serviceName, authenticator);
String url = server.url("/").toString();
toneAnalyzerService.setServiceUrl(url);
}
use of com.ibm.cloud.sdk.core.security.NoAuthAuthenticator in project java-sdk by watson-developer-cloud.
the class CompareComplyTest 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();
compareComplyService = new CompareComply(version, serviceName, authenticator);
String url = server.url("/").toString();
compareComplyService.setServiceUrl(url);
}
use of com.ibm.cloud.sdk.core.security.NoAuthAuthenticator in project java-sdk by watson-developer-cloud.
the class PersonalityInsightsTest 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();
personalityInsightsService = new PersonalityInsights(version, serviceName, authenticator);
String url = server.url("/").toString();
personalityInsightsService.setServiceUrl(url);
}
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);
}
Aggregations