You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sf...@apache.org on 2014/12/15 22:43:12 UTC

incubator-usergrid git commit: add token

Repository: incubator-usergrid
Updated Branches:
  refs/heads/UG-rest-test-framework-overhaul d3b6fcc22 -> c7ca54e7a


add token


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

Branch: refs/heads/UG-rest-test-framework-overhaul
Commit: c7ca54e7af86c22bfbf5da2c64a3555551beb42f
Parents: d3b6fcc
Author: Shawn Feldman <sf...@apache.org>
Authored: Mon Dec 15 14:43:09 2014 -0700
Committer: Shawn Feldman <sf...@apache.org>
Committed: Mon Dec 15 14:43:09 2014 -0700

----------------------------------------------------------------------
 .../resource2point0/endpoints/ApplicationResource.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/c7ca54e7/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/endpoints/ApplicationResource.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/endpoints/ApplicationResource.java b/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/endpoints/ApplicationResource.java
index d075df1..fd79fcb 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/endpoints/ApplicationResource.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/endpoints/ApplicationResource.java
@@ -40,7 +40,7 @@ public class ApplicationResource extends NamedResource {
 
 
     public Application post(Application application){
-        ApiResponse response = getResource().type( MediaType.APPLICATION_JSON_TYPE ).accept( MediaType.APPLICATION_JSON )
+        ApiResponse response = getResourceWithToken().type( MediaType.APPLICATION_JSON_TYPE ).accept( MediaType.APPLICATION_JSON )
                 .post( ApiResponse.class, application );
 
         return new Application(response);
@@ -48,8 +48,8 @@ public class ApplicationResource extends NamedResource {
     }
 
     public Application put(Application application){
-        ApiResponse response = getResource().type( MediaType.APPLICATION_JSON_TYPE ).accept( MediaType.APPLICATION_JSON )
-                .put( ApiResponse.class, application );
+        ApiResponse response = getResourceWithToken().type( MediaType.APPLICATION_JSON_TYPE ).accept( MediaType.APPLICATION_JSON )
+                .put(ApiResponse.class, application );
 
         return new Application(response);
 
@@ -57,7 +57,7 @@ public class ApplicationResource extends NamedResource {
 
 
     public Application get(){
-        ApiResponse response = getResource().type( MediaType.APPLICATION_JSON_TYPE ).accept( MediaType.APPLICATION_JSON )
+        ApiResponse response = getResourceWithToken().type( MediaType.APPLICATION_JSON_TYPE ).accept( MediaType.APPLICATION_JSON )
                 .get(ApiResponse.class);
 
         return new Application(response);
@@ -65,8 +65,8 @@ public class ApplicationResource extends NamedResource {
     }
 
     public void delete(Application application){
-        ApiResponse response = getResource().type( MediaType.APPLICATION_JSON_TYPE ).accept( MediaType.APPLICATION_JSON )
-                .delete( ApiResponse.class );
+        ApiResponse response = getResourceWithToken().type( MediaType.APPLICATION_JSON_TYPE ).accept( MediaType.APPLICATION_JSON )
+                .delete(ApiResponse.class );
     }