File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
assistant/src/test/java/com/ibm/watson/assistant/v1 Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2323import com .ibm .cloud .sdk .core .security .BasicAuthenticator ;
2424import com .ibm .cloud .sdk .core .service .exception .ForbiddenException ;
2525import com .ibm .cloud .sdk .core .service .exception .NotFoundException ;
26+ import com .ibm .cloud .sdk .core .service .exception .UnauthorizedException ;
2627import com .ibm .watson .assistant .v1 .model .*;
2728import com .ibm .watson .common .RetryRunner ;
2829import io .reactivex .Single ;
@@ -120,7 +121,7 @@ public void accept(Response<MessageResponse> response) throws Exception {
120121 }
121122
122123 /** Ping bad credentials throws exception. */
123- @ Test (expected = ForbiddenException .class )
124+ @ Test (expected = UnauthorizedException .class )
124125 public void pingBadCredentialsThrowsException () {
125126 Assistant badService = new Assistant ("2019-02-28" , new BasicAuthenticator ("foo" , "bar" ));
126127 MessageOptions options = new MessageOptions .Builder (workspaceId ).build ();
@@ -1770,7 +1771,7 @@ public void testDeleteUserData() {
17701771 /** Test list mentions. */
17711772 @ Test
17721773 public void testListMentions () {
1773- String entity = "holiday " ;
1774+ String entity = "beverage " ;
17741775
17751776 ListMentionsOptions listMentionsOptions =
17761777 new ListMentionsOptions .Builder ().workspaceId (workspaceId ).entity (entity ).build ();
You can’t perform that action at this time.
0 commit comments