Unit-testing methods secured with Securesocial annotation
问题 I'm trying to make some functional tests for my webapplication that is using Play 2.1.4 and Socialsecure. Before using securesocial the tests where pretty straight forward but now im having troubles figuering out how i can make tests on the secured actions. @Test public void createNewNote() { Result result; // Should return bad request if no data is given result = callAction( controllers.routes.ref.Notes.newNote(), fakeRequest().withFormUrlEncodedBody( ImmutableMap.of("title", "", "text", "")