@Test
 public void testAddMemberToActivity() {
   JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID);
   JsonJavaObject json = previewPage.getJson();
   Assert.assertEquals(json.getAsInt("status"), 201); // created
 }
Exemple #2
0
 @Test
 public void testUpdateActivityMember() {
   JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID);
   JsonJavaObject json = previewPage.getJson();
   Assert.assertEquals(json.getAsInt("status"), 200); // OK	
 }