source: josm/trunk/test/unit/org/openstreetmap/josm/gui/layer/ImageryLayerTest.java@ 11241

Last change on this file since 11241 was 10547, checked in by Don-vip, 8 years ago

fix #13159 - Move image processors out of imagery layer (patch by michael2402) - gsoc-core + fix checkstyle violations

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.layer;
3
4import static org.junit.Assert.assertNotNull;
5import static org.junit.Assert.assertSame;
6
7import org.junit.Rule;
8import org.junit.Test;
9import org.openstreetmap.josm.gui.layer.imagery.ImageryFilterSettings;
10import org.openstreetmap.josm.testutils.JOSMTestRules;
11
12import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
13
14/**
15 * Unit tests of {@link ImageryLayer} class.
16 */
17public class ImageryLayerTest {
18
19 /**
20 * For creating layers
21 */
22 @Rule
23 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
24 public JOSMTestRules test = new JOSMTestRules().preferences();
25
26 /**
27 * Unit test of {@link ImageryLayer#getFilterSettings()}
28 */
29 @Test
30 public void testHasSettings() {
31 ImageryLayer layer = TMSLayerTest.createTmsLayer();
32 ImageryFilterSettings settings = layer.getFilterSettings();
33 assertNotNull(settings);
34 assertSame(settings, layer.getFilterSettings());
35 }
36}
Note: See TracBrowser for help on using the repository browser.