Ignore:
Timestamp:
2015-10-11T17:28:19+02:00 (10 years ago)
Author:
Don-vip
Message:

improve/cleanup unit tests

File:
1 edited

Legend:

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

    r8836 r8857  
    1313import org.openstreetmap.josm.JOSMFixture;
    1414
     15/**
     16 * Unit tests for class {@link JCSCachedTileLoaderJob}.
     17 */
    1518public class JCSCachedTileLoaderJobTest {
     19
    1620    private static class TestCachedTileLoaderJob extends JCSCachedTileLoaderJob<String, CacheEntry> {
    1721        private String url;
     
    4448            return new CacheEntry("dummy".getBytes());
    4549        }
    46 
    4750    }
    4851
    4952    private static class Listener implements ICachedLoaderListener {
    50         private CacheEntry data;
    5153        private CacheEntryAttributes attributes;
    52         private LoadResult result;
    5354        private boolean ready;
    5455
    5556        @Override
    5657        public synchronized void loadingFinished(CacheEntry data, CacheEntryAttributes attributes, LoadResult result) {
    57             this.data = data;
    5858            this.attributes = attributes;
    59             this.result = result;
    6059            this.ready = true;
    6160            this.notify();
    6261        }
     62    }
    6363
    64     }
    6564    /**
    6665     * Setup test.
     
    108107        }
    109108        assertEquals(responseCode, listener.attributes.getResponseCode());
    110 
    111109    }
    112110
     
    114112        return new TestCachedTileLoaderJob("http://httpstat.us/" + responseCode);
    115113    }
    116 
    117114}
    118 
Note: See TracChangeset for help on using the changeset viewer.