397398399400401402403404405406407
project.setProjectScope(ProjectScope.PUBLIC); project.update(); // When Result result = callAction( controllers.routes.ref.WatchApp.watch(resource.asParameter()), fakeRequest() .withSession(UserApp.SESSION_USERID, nonmember.id.toString()) ); // Then
416417418419420421422423424425426
// Given Resource resource = issue.asResource(); // When Result result = callAction( controllers.routes.ref.WatchApp.watch(resource.asParameter()), fakeRequest() .withSession(UserApp.SESSION_USERID, author.id.toString()) ); // Then
433434435436437438439440441442443
// Given Resource resource = issue.asResource(); // When Result result = callAction( controllers.routes.ref.WatchApp.watch(resource.asParameter()), fakeRequest() .withSession(UserApp.SESSION_USERID, assignee.id.toString()) ); // Then
454455456457458459460461462463464
project.update(); // When Result result = callAction( controllers.routes.ref.WatchApp.unwatch(resource.asParameter()), fakeRequest() .withSession(UserApp.SESSION_USERID, nonmember.id.toString()) ); // Then
473474475476477478479480481482483
// Given Resource resource = issue.asResource(); // When Result result = callAction( controllers.routes.ref.WatchApp.unwatch(resource.asParameter()), fakeRequest() .withSession(UserApp.SESSION_USERID, author.id.toString()) ); // Then
490491492493494495496497498499500
// Given Resource resource = issue.asResource(); // When Result result = callAction( controllers.routes.ref.WatchApp.unwatch(resource.asParameter()), fakeRequest() .withSession(UserApp.SESSION_USERID, assignee.id.toString()) ); // Then