@@ -0,0 +1,1512 @@
+package controller;%0A%0Aimport static org.fest.assertions.Assertions.assertThat;%0Aimport static play.test.Helpers.fakeApplication;%0Aimport static play.test.Helpers.fakeRequest;%0Aimport static play.test.Helpers.route;%0Aimport static play.test.Helpers.running;%0Aimport static play.test.Helpers.status;%0Aimport guice.GlobalTest;%0A%0Aimport org.junit.Test;%0A%0Aimport play.mvc.Http.Status;%0Aimport play.mvc.Result;%0Aimport play.test.FakeApplication;%0Aimport play.test.FakeRequest;%0A%0Apublic class TestApplicationController %7B%0A%0A    @Test%0A    public void testIndex() %7B%0A        FakeApplication fakeApplication = fakeApplication(new GlobalTest());%0A        running(%0A                fakeApplication, () -%3E %7B%0A                    FakeRequest fakeIndexRequest = fakeRequest(%22GET%22, %22/%22);%0A                    fakeIndexRequest.withSession(%22username%22, %22admin%22);%0A                    %0A                    Result result = route(fakeIndexRequest);%0A                    %0A                    assertThat(status(result)).isEqualTo(Status.OK);%0A                %7D%0A        );%0A    %7D%0A    %0A    @Test%0A    public void testIndexNotLogged() %7B%0A        FakeApplication fakeApplication = fakeApplication(new GlobalTest());%0A        running(%0A                fakeApplication, () -%3E %7B%0A                    FakeRequest fakeIndexRequest = fakeRequest(%22GET%22, %22/%22);%0A                    %0A                    Result result = route(fakeIndexRequest);%0A                    %0A                    assertThat(status(result)).isEqualTo(Status.SEE_OTHER);%0A                %7D%0A        );%0A    %7D%0A%7D%0A

Add tests on Application controller