Search in sources :

Example 1 with Website

use of com.faforever.client.config.ClientProperties.Website in project downlords-faf-client by FAForever.

the class LoginControllerTest method setUp.

@Before
public void setUp() throws Exception {
    ClientProperties clientProperties = new ClientProperties();
    instance = new LoginController(userService, preferencesService, platformService, clientProperties);
    loadFxml("theme/login.fxml", param -> instance);
    Website website = clientProperties.getWebsite();
    website.setCreateAccountUrl("create");
    website.setForgotPasswordUrl("forgot");
    when(preferencesService.getPreferences()).thenReturn(new Preferences());
}
Also used : ClientProperties(com.faforever.client.config.ClientProperties) Website(com.faforever.client.config.ClientProperties.Website) Preferences(com.faforever.client.preferences.Preferences) Before(org.junit.Before)

Aggregations

ClientProperties (com.faforever.client.config.ClientProperties)1 Website (com.faforever.client.config.ClientProperties.Website)1 Preferences (com.faforever.client.preferences.Preferences)1 Before (org.junit.Before)1