File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
assistant/src/test/java/com/ibm/watson/assistant/v1 Expand file tree Collapse file tree 1 file changed +2
-1
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 ();
You can’t perform that action at this time.
0 commit comments