usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject usergrid git commit: Exceptions changed in later Jersey version.
Date Thu, 25 Feb 2016 20:33:49 GMT
Repository: usergrid
Updated Branches:
  refs/heads/master 705891c13 -> e8e930b52


Exceptions changed in later Jersey version.


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/e8e930b5
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/e8e930b5
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/e8e930b5

Branch: refs/heads/master
Commit: e8e930b52f5cb73905ceb5a6fe310a98f80042cc
Parents: 705891c
Author: Michael Russo <mrusso@apigee.com>
Authored: Thu Feb 25 12:33:19 2016 -0800
Committer: Michael Russo <mrusso@apigee.com>
Committed: Thu Feb 25 12:33:19 2016 -0800

----------------------------------------------------------------------
 .../java/org/apache/usergrid/rest/management/AdminUsersIT.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/e8e930b5/stack/rest/src/test/java/org/apache/usergrid/rest/management/AdminUsersIT.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/management/AdminUsersIT.java
b/stack/rest/src/test/java/org/apache/usergrid/rest/management/AdminUsersIT.java
index e294556..07132cb 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/management/AdminUsersIT.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/management/AdminUsersIT.java
@@ -35,6 +35,7 @@ import javax.mail.internet.MimeMultipart;
 import javax.ws.rs.BadRequestException;
 import javax.ws.rs.ClientErrorException;
 import javax.ws.rs.InternalServerErrorException;
+import javax.ws.rs.NotAuthorizedException;
 import javax.ws.rs.core.Form;
 import javax.ws.rs.core.Response;
 import java.io.IOException;
@@ -356,7 +357,7 @@ public class AdminUsersIT extends AbstractRestIT {
 
         try{
             management().users().user( newOrg.getUsername() ).put( userProperty );
-        } catch( UniformInterfaceException e ){
+        } catch( NotAuthorizedException e ){
 
             int status = e.getResponse().getStatus();
             assertEquals(401, status);
@@ -435,7 +436,7 @@ public class AdminUsersIT extends AbstractRestIT {
             Entity userProperty = new Entity(  ).chainPut( "company","usergrid" );
             management().users().user( newOrg.getUsername() ).put( userProperty );
 
-        } catch( UniformInterfaceException e ){
+        } catch( NotAuthorizedException e ){
 
             int status = e.getResponse().getStatus();
             assertEquals(401, status);


Mime
View raw message