Ignore:
Timestamp:
2016-09-04T01:13:04+02:00 (8 years ago)
Author:
donvip
Message:

fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/cache/MapillaryCacheTest.java

    r32653 r32923  
    66import static org.junit.Assert.assertNotEquals;
    77
     8import java.io.File;
     9import java.io.IOException;
     10
     11import org.junit.Before;
    812import org.junit.Test;
     13import org.openstreetmap.josm.Main;
     14import org.openstreetmap.josm.data.cache.JCSCacheManager;
    915import org.openstreetmap.josm.plugins.mapillary.AbstractTest;
     16import org.openstreetmap.josm.plugins.mapillary.MapillaryPlugin;
    1017import org.openstreetmap.josm.plugins.mapillary.cache.MapillaryCache.Type;
    1118
    1219public class MapillaryCacheTest extends AbstractTest {
    1320
     21  @Before
     22  public void setUp() throws IOException {
     23    MapillaryPlugin.cache = JCSCacheManager.getCache("mapillary", 10, 10000,
     24           new File(Main.pref.getPluginsDirectory(), "mapillary").getPath() + "/cache/");
     25  }
     26 
    1427  @Test
    1528  public void test() {
     
    2841    assertEquals(null, cache.getUrl());
    2942  }
    30 
    3143}
Note: See TracChangeset for help on using the changeset viewer.