Search in sources :

Example 1 with PreviewSize

use of com.faforever.client.map.MapServiceImpl.PreviewSize in project downlords-faf-client by FAForever.

the class MapServiceImplTest method testLoadPreview.

@Test
public void testLoadPreview() throws Exception {
    for (PreviewSize previewSize : PreviewSize.values()) {
        Path cacheSubDir = Paths.get("maps").resolve(previewSize.folderName);
        instance.loadPreview("preview", previewSize);
        verify(assetService).loadAndCacheImage(any(URL.class), eq(cacheSubDir), any());
    }
}
Also used : Path(java.nio.file.Path) PreviewSize(com.faforever.client.map.MapServiceImpl.PreviewSize) URL(java.net.URL) Test(org.junit.Test) AbstractPlainJavaFxTest(com.faforever.client.test.AbstractPlainJavaFxTest)

Aggregations

PreviewSize (com.faforever.client.map.MapServiceImpl.PreviewSize)1 AbstractPlainJavaFxTest (com.faforever.client.test.AbstractPlainJavaFxTest)1 URL (java.net.URL)1 Path (java.nio.file.Path)1 Test (org.junit.Test)1