Skip to content

Commit 43cd1a4

Browse files
committed
test(watson-auto-config-test): update WatsonAutoConfigTest
1 parent cd3c091 commit 43cd1a4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/test/java/com/ibm/watson/developer_cloud/spring/boot/test/WatsonAutoConfigTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ public void watsonBeanConfigFromEnvironment() {
6161
assertNotNull(speechToText);
6262
assertEquals(url, speechToText.getServiceUrl());
6363

64-
assertEquals(Authenticator.AUTHTYPE_BASIC, speechToText.getAuthenticator().authenticationType());
65-
BasicAuthenticator authenticator = (BasicAuthenticator) speechToText.getAuthenticator();
66-
assertEquals(username, authenticator.getUsername());
67-
assertEquals(password, authenticator.getPassword());
64+
assertEquals(Authenticator.AUTHTYPE_IAM, speechToText.getAuthenticator().authenticationType());
6865
}
6966
}

0 commit comments

Comments
 (0)