Search in sources :

Example 11 with FafApiProperties

use of com.faforever.api.config.FafApiProperties in project faf-java-api by FAForever.

the class ClanEnricherListenerTest method setUp.

@Before
public void setUp() throws Exception {
    instance = new ClanEnricherListener();
    FafApiProperties fafApiProperties = new FafApiProperties();
    instance.init(fafApiProperties);
    fafApiProperties.getClan().setWebsiteUrlFormat("http://example.com/%s");
}
Also used : FafApiProperties(com.faforever.api.config.FafApiProperties) Before(org.junit.Before)

Example 12 with FafApiProperties

use of com.faforever.api.config.FafApiProperties in project faf-java-api by FAForever.

the class FeaturedModEnricherTest method setUp.

@Before
public void setUp() {
    FafApiProperties fafApiProperties = new FafApiProperties();
    fafApiProperties.getFeaturedMod().setBireusUrlFormat("http://example.com/%s");
    featuredModEnricher = new FeaturedModEnricher();
    featuredModEnricher.init(fafApiProperties);
}
Also used : FeaturedModEnricher(com.faforever.api.data.domain.FeaturedModEnricher) FafApiProperties(com.faforever.api.config.FafApiProperties) Before(org.junit.Before)

Aggregations

FafApiProperties (com.faforever.api.config.FafApiProperties)12 Before (org.junit.Before)10 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 Test (org.junit.Test)2 InvitationResult (com.faforever.api.clan.result.InvitationResult)1 Deployment (com.faforever.api.config.FafApiProperties.Deployment)1 Avatar (com.faforever.api.data.domain.Avatar)1 Clan (com.faforever.api.data.domain.Clan)1 FeaturedModEnricher (com.faforever.api.data.domain.FeaturedModEnricher)1 Mod (com.faforever.api.data.domain.Mod)1 Player (com.faforever.api.data.domain.Player)1 User (com.faforever.api.data.domain.User)1 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 JavaTimeModule (com.fasterxml.jackson.datatype.jsr310.JavaTimeModule)1 InputStream (java.io.InputStream)1 Matchers.anyString (org.mockito.Matchers.anyString)1 WebMvcTest (org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest)1 MockMultipartFile (org.springframework.mock.web.MockMultipartFile)1