activityService.get("notfound");
fail("Expecting ServiceException from ActivityService#get(String)");
} catch (ServiceException se) {
}
RestActivity activity = new RestActivity();
activity.setTitle("Hello There");
try {
activityService.create(activity);
fail("Expecting ServiceException from ActivityService#create(RestActivity)");
} catch (ServiceException se) {
}
try {
activityService.update(activity);
fail("Expecting UnsupportedMethodException from ActivityService#update(RestActivity)");
} catch (UnsupportedMethodException e) {
}
//create a activity to demo's stream
startSessionAs("root", "gtn");
RestActivity demoActivity = createActivities(1).get(0);
startSessionAsAnonymous();
RestComment comment = new RestComment();
comment.setText("comment");