File tree Expand file tree Collapse file tree 9 files changed +18
-9
lines changed
assistant/src/test/java/com/ibm/watson/assistant
compare-comply/src/test/java/com/ibm/watson/compare_comply/v1
discovery/src/test/java/com/ibm/watson/discovery/v1
language-translator/src/test/java/com/ibm/watson/language_translator/v3
natural-language-classifier/src/test/java/com/ibm/watson/natural_language_classifier/v1
natural-language-understanding/src/test/java/com/ibm/watson/natural_language_understanding/v1
personality-insights/src/test/java/com/ibm/watson/personality_insights/v3
speech-to-text/src/test/java/com/ibm/watson/speech_to_text/v1 Expand file tree Collapse file tree 9 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1212 */
1313package com .ibm .watson .assistant .v1 ;
1414
15+ import com .ibm .cloud .sdk .core .security .Authenticator ;
1516import com .ibm .cloud .sdk .core .security .IamAuthenticator ;
1617import com .ibm .watson .common .WatsonServiceTest ;
1718import org .junit .Assume ;
@@ -45,7 +46,7 @@ public void setUp() throws Exception {
4546
4647 Assume .assumeFalse ("config.properties doesn't have valid credentials." , apiKey == null );
4748
48- IamAuthenticator authenticator = new IamAuthenticator (apiKey );
49+ Authenticator authenticator = new IamAuthenticator (apiKey );
4950 service = new Assistant ("2018-07-10" , authenticator );
5051 service .setEndPoint (getProperty ("assistant.url" ));
5152 service .setDefaultHeaders (getDefaultHeaders ());
Original file line number Diff line number Diff line change 1212 */
1313package com .ibm .watson .assistant .v2 ;
1414
15+ import com .ibm .cloud .sdk .core .security .Authenticator ;
1516import com .ibm .cloud .sdk .core .security .IamAuthenticator ;
1617import com .ibm .watson .common .WatsonServiceTest ;
1718import org .junit .Assume ;
@@ -45,7 +46,7 @@ public void setUp() throws Exception {
4546
4647 Assume .assumeFalse ("config.properties doesn't have valid credentials." , apiKey == null );
4748
48- IamAuthenticator authenticator = new IamAuthenticator (apiKey );
49+ Authenticator authenticator = new IamAuthenticator (apiKey );
4950 service = new Assistant ("2019-02-28" , authenticator );
5051 service .setEndPoint (getProperty ("assistant.url" ));
5152 service .setDefaultHeaders (getDefaultHeaders ());
Original file line number Diff line number Diff line change 11package com .ibm .watson .compare_comply .v1 ;
22
3+ import com .ibm .cloud .sdk .core .security .Authenticator ;
34import com .ibm .cloud .sdk .core .security .IamAuthenticator ;
45import com .ibm .watson .common .WatsonServiceTest ;
56import org .junit .Assume ;
@@ -25,7 +26,7 @@ public void setUp() throws Exception {
2526 String apiKey = getProperty ("compare_comply.apikey" );
2627 Assume .assumeFalse ("config.properties doesn't have valid credentials." , apiKey == null );
2728
28- IamAuthenticator authenticator = new IamAuthenticator (apiKey );
29+ Authenticator authenticator = new IamAuthenticator (apiKey );
2930 service = new CompareComply (VERSION , authenticator );
3031 service .setEndPoint (getProperty ("compare_comply.url" ));
3132 service .setDefaultHeaders (getDefaultHeaders ());
Original file line number Diff line number Diff line change 1717import com .google .gson .JsonPrimitive ;
1818import com .google .gson .internal .LazilyParsedNumber ;
1919import com .ibm .cloud .sdk .core .http .HttpMediaType ;
20+ import com .ibm .cloud .sdk .core .security .Authenticator ;
2021import com .ibm .cloud .sdk .core .security .BasicAuthenticator ;
2122import com .ibm .cloud .sdk .core .security .IamAuthenticator ;
2223import com .ibm .cloud .sdk .core .service .exception .BadRequestException ;
@@ -228,7 +229,7 @@ public void setup() throws Exception {
228229 super .setUp ();
229230 String apiKey = getProperty ("discovery.apikey" );
230231 String url = getProperty ("discovery.url" );
231- IamAuthenticator authenticator = new IamAuthenticator (apiKey );
232+ Authenticator authenticator = new IamAuthenticator (apiKey );
232233 discovery = new Discovery ("2018-05-23" , authenticator );
233234 discovery .setEndPoint (url );
234235 discovery .setDefaultHeaders (getDefaultHeaders ());
Original file line number Diff line number Diff line change 1616import com .google .common .collect .ImmutableMap ;
1717import com .ibm .cloud .sdk .core .http .HttpMediaType ;
1818import com .ibm .cloud .sdk .core .http .Response ;
19+ import com .ibm .cloud .sdk .core .security .Authenticator ;
1920import com .ibm .cloud .sdk .core .security .IamAuthenticator ;
2021import com .ibm .watson .common .WatsonHttpHeaders ;
2122import com .ibm .watson .common .WatsonServiceTest ;
@@ -81,7 +82,7 @@ public void setUp() throws Exception {
8182
8283 Assume .assumeFalse ("config.properties doesn't have valid credentials." , (iamApiKey == null ));
8384
84- IamAuthenticator authenticator = new IamAuthenticator (iamApiKey );
85+ Authenticator authenticator = new IamAuthenticator (iamApiKey );
8586 service = new LanguageTranslator ("2018-05-01" , authenticator );
8687 service .setEndPoint (getProperty ("language_translator.url" ));
8788
Original file line number Diff line number Diff line change 1212 */
1313package com .ibm .watson .natural_language_classifier .v1 ;
1414
15+ import com .ibm .cloud .sdk .core .security .Authenticator ;
1516import com .ibm .cloud .sdk .core .security .IamAuthenticator ;
1617import com .ibm .cloud .sdk .core .service .exception .NotFoundException ;
1718import com .ibm .watson .common .WatsonServiceTest ;
@@ -64,7 +65,7 @@ public void setUp() throws Exception {
6465
6566 Assume .assumeFalse ("config.properties doesn't have valid credentials." , apiKey == null );
6667
67- IamAuthenticator authenticator = new IamAuthenticator (apiKey );
68+ Authenticator authenticator = new IamAuthenticator (apiKey );
6869 service = new NaturalLanguageClassifier (authenticator );
6970 service .setDefaultHeaders (getDefaultHeaders ());
7071 service .setEndPoint (getProperty ("natural_language_classifier.url" ));
Original file line number Diff line number Diff line change 1313package com .ibm .watson .natural_language_understanding .v1 ;
1414
1515
16+ import com .ibm .cloud .sdk .core .security .Authenticator ;
1617import com .ibm .cloud .sdk .core .security .IamAuthenticator ;
1718import com .ibm .watson .common .RetryRunner ;
1819import com .ibm .watson .common .WatsonServiceTest ;
@@ -77,7 +78,7 @@ public void setUp() throws Exception {
7778
7879 Assume .assumeFalse ("config.properties doesn't have valid credentials." , apiKey == null );
7980
80- IamAuthenticator authenticator = new IamAuthenticator (apiKey );
81+ Authenticator authenticator = new IamAuthenticator (apiKey );
8182 service = new NaturalLanguageUnderstanding ("2018-11-16" , authenticator );
8283 service .setDefaultHeaders (getDefaultHeaders ());
8384 service .setEndPoint (getProperty ("natural_language_understanding.url" ));
Original file line number Diff line number Diff line change 1313package com .ibm .watson .personality_insights .v3 ;
1414
1515import com .google .common .io .CharStreams ;
16+ import com .ibm .cloud .sdk .core .security .Authenticator ;
1617import com .ibm .cloud .sdk .core .security .IamAuthenticator ;
1718import com .ibm .watson .common .WatsonServiceTest ;
1819import com .ibm .watson .personality_insights .v3 .model .ConsumptionPreferences ;
@@ -56,7 +57,7 @@ public void setUp() throws Exception {
5657
5758 Assume .assumeFalse ("config.properties doesn't have valid credentials." , apiKey == null );
5859
59- IamAuthenticator authenticator = new IamAuthenticator (apiKey );
60+ Authenticator authenticator = new IamAuthenticator (apiKey );
6061 service = new PersonalityInsights (VERSION_DATE_2016_10_19 , authenticator );
6162 service .setEndPoint (getProperty ("personality_insights.url" ));
6263 service .setDefaultHeaders (getDefaultHeaders ());
Original file line number Diff line number Diff line change 1313package com .ibm .watson .speech_to_text .v1 ;
1414
1515import com .ibm .cloud .sdk .core .http .HttpMediaType ;
16+ import com .ibm .cloud .sdk .core .security .Authenticator ;
1617import com .ibm .cloud .sdk .core .security .BasicAuthenticator ;
1718import com .ibm .cloud .sdk .core .service .exception .NotFoundException ;
1819import com .ibm .watson .common .RetryRunner ;
@@ -131,7 +132,7 @@ public void setUp() throws Exception {
131132
132133 Assume .assumeFalse ("config.properties doesn't have valid credentials." , username == null );
133134
134- BasicAuthenticator authenticator = new BasicAuthenticator (username , password );
135+ Authenticator authenticator = new BasicAuthenticator (username , password );
135136 service = new SpeechToText (authenticator );
136137 service .setEndPoint (getProperty ("speech_to_text.url" ));
137138 service .setDefaultHeaders (getDefaultHeaders ());
You can’t perform that action at this time.
0 commit comments