Repository: incubator-usergrid Updated Branches: refs/heads/USERGRID-336 9b1bd03e8 -> 4d33b7819
Removing early references to refreshIndex. fixing content type for plain text test Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/4d33b781 Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/4d33b781 Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/4d33b781 Branch: refs/heads/USERGRID-336 Commit: 4d33b78192dcd65d726df23ade3cea99f6474e03 Parents: 9b1bd03 Author: ryan bridges <ry...@apache.org> Authored: Wed Apr 22 16:01:52 2015 -0400 Committer: ryan bridges <ry...@apache.org> Committed: Wed Apr 22 16:01:52 2015 -0400 ---------------------------------------------------------------------- .../org/apache/usergrid/rest/filters/ContentTypeResourceIT.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/4d33b781/stack/rest/src/test/java/org/apache/usergrid/rest/filters/ContentTypeResourceIT.java ---------------------------------------------------------------------- diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/filters/ContentTypeResourceIT.java b/stack/rest/src/test/java/org/apache/usergrid/rest/filters/ContentTypeResourceIT.java index 04a96ab..4286fdf 100644 --- a/stack/rest/src/test/java/org/apache/usergrid/rest/filters/ContentTypeResourceIT.java +++ b/stack/rest/src/test/java/org/apache/usergrid/rest/filters/ContentTypeResourceIT.java @@ -52,7 +52,6 @@ public class ContentTypeResourceIT extends AbstractRestIT { */ @Test public void correctHeaders() throws Exception { - refreshIndex(); Entity testEntity=new Entity().chainPut("name", "Solitaire1"); WebResource.Builder builder = app().collection("games") .getResource(true, getAdminToken()) @@ -75,11 +74,10 @@ public class ContentTypeResourceIT extends AbstractRestIT { */ @Test public void textPlainContentType() throws Exception { - refreshIndex(); String json = JsonUtils.mapToFormattedJsonString(hashMap("name", "Solitaire2")); WebResource.Builder builder = app().collection("games").getResource(true, getAdminToken()) .accept(MediaType.APPLICATION_JSON) - .type(MediaType.APPLICATION_JSON); + .type(MediaType.TEXT_PLAIN_TYPE); ClientResponse clientResponse = builder.post(ClientResponse.class, json); @@ -162,7 +160,6 @@ public class ContentTypeResourceIT extends AbstractRestIT { */ @Test public void missingAcceptAndContent() throws Exception { - refreshIndex(); WebResource builder = app() .collection("games") .getResource(true, getAdminToken());