Changeset 11473 in josm


Ignore:
Timestamp:
2017-01-17T00:36:08+01:00 (3 years ago)
Author:
wiktorn
Message:

Always clear cache before tests.

Closes: #14255

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java

    r11465 r11473  
    1111
    1212import org.apache.commons.jcs.access.behavior.ICacheAccess;
     13import org.junit.Before;
    1314import org.junit.Rule;
    1415import org.junit.Test;
     
    7677
    7778    /**
     79     * Always clear cache before tests
     80     * @throws Exception when clearing fails
     81     */
     82    @Before
     83    public void clearCache() throws Exception {
     84        getCache().clear();
     85    }
     86
     87    /**
    7888     * Test status codes
    7989     * @throws InterruptedException in case of thread interruption
     
    96106    /**
    97107     * Test unknown host
    98      * @throws InterruptedException in case of thread interruption
    99108     * @throws IOException in case of I/O error
    100109     */
Note: See TracChangeset for help on using the changeset viewer.