File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
discovery/src/test/java/com/ibm/watson/discovery/v1 Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 2828import com .ibm .cloud .sdk .core .security .BasicAuthenticator ;
2929import com .ibm .cloud .sdk .core .security .BearerTokenAuthenticator ;
3030import com .ibm .cloud .sdk .core .security .IamAuthenticator ;
31- import com .ibm .cloud .sdk .core .service .exception .BadRequestException ;
32- import com .ibm .cloud .sdk .core .service .exception .ForbiddenException ;
33- import com .ibm .cloud .sdk .core .service .exception .InternalServerErrorException ;
34- import com .ibm .cloud .sdk .core .service .exception .NotFoundException ;
31+ import com .ibm .cloud .sdk .core .service .exception .*;
3532import com .ibm .cloud .sdk .core .util .GsonSingleton ;
3633import com .ibm .watson .common .RetryRunner ;
3734import com .ibm .watson .common .WaitFor ;
@@ -354,7 +351,7 @@ public void pingIsSuccessful() {
354351 }
355352
356353 /** Bad credentials throws exception. */
357- @ Test (expected = ForbiddenException .class )
354+ @ Test (expected = UnauthorizedException .class )
358355 public void badCredentialsThrowsException () {
359356 Discovery badService = new Discovery ("2019-04-30" , new BasicAuthenticator ("foo" , "bar" ));
360357 badService .listEnvironments (null ).execute ().getResult ();
You can’t perform that action at this time.
0 commit comments