@@ -0,0 +1,2525 @@
+package utils;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport play.test.FakeApplication;%0Aimport play.test.Helpers;%0A%0Aimport static org.fest.assertions.Assertions.assertThat;%0A%0Apublic class ConfigTest %7B %0A    protected static FakeApplication app;%0A    private Map%3CString, String%3E additionalConfiguration;%0A    %0A    @Before%0A    public void before() %7B%0A        additionalConfiguration = new HashMap%3CString, String%3E(Helpers.inMemoryDatabase());%0A    %7D%0A%0A    @Test%0A    public void getScheme() %7B%0A        additionalConfiguration.put(%22application.scheme%22, %22http%22);%0A        app = Helpers.fakeApplication(additionalConfiguration);%0A        Helpers.start(app);%0A        assertThat(Config.getScheme(%22https%22)).isEqualTo(%22http%22);%0A        Helpers.stop(app);%0A        %0A        additionalConfiguration.put(%22application.scheme%22, %22%22);%0A        app = Helpers.fakeApplication(additionalConfiguration);%0A        Helpers.start(app);%0A        assertThat(Config.getScheme(%22https%22)).isEqualTo(%22https%22);%0A        Helpers.stop(app);%0A    %7D%0A%0A    @Test%0A    public void getHostname() %7B%0A        additionalConfiguration.put(%22application.hostname%22, %22www.nforge.com%22);%0A        additionalConfiguration.put(%22application.port%22, %228080%22);%0A        app = Helpers.fakeApplication(additionalConfiguration);%0A        Helpers.start(app);%0A        assertThat(Config.getHostport(%22localhost%22)).isEqualTo(%22www.nforge.com:8080%22);%0A        Helpers.stop(app);%0A        %0A        additionalConfiguration.put(%22application.hostname%22, %22www.nforge.com%22);%0A        additionalConfiguration.put(%22application.port%22, null);%0A        app = Helpers.fakeApplication(additionalConfiguration);%0A        Helpers.start(app);%0A        assertThat(Config.getHostport(%22localhost:9000%22)).isEqualTo(%22www.nforge.com%22);%0A        Helpers.stop(app);%0A        %0A        additionalConfiguration.put(%22application.hostname%22, null);%0A        additionalConfiguration.put(%22application.port%22, %228080%22);%0A        app = Helpers.fakeApplication(additionalConfiguration);%0A        Helpers.start(app);%0A        assertThat(Config.getHostport(%22localhost:9000%22)).isEqualTo(%22localhost:9000%22);%0A        Helpers.stop(app);%0A        %0A        additionalConfiguration.put(%22application.hostname%22, null);%0A        additionalConfiguration.put(%22application.port%22, null);%0A        app = Helpers.fakeApplication(additionalConfiguration);%0A        Helpers.start(app);%0A        assertThat(Config.getHostport(%22localhost:9000%22)).isEqualTo(%22localhost:9000%22);%0A        Helpers.stop(app);%0A    %7D%0A%0A%7D

Add the test for Config.