Last change
on this file was 18037, checked in by Don-vip, 3 years ago |
fix #21064 - Add JUnit 5 extension for preferences (patch by taylor.smock)
|
-
Property svn:eol-style
set to
native
|
File size:
828 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.layer;
|
---|
3 |
|
---|
4 | import static org.junit.jupiter.api.Assertions.assertNotNull;
|
---|
5 | import static org.junit.jupiter.api.Assertions.assertSame;
|
---|
6 |
|
---|
7 | import org.junit.jupiter.api.Test;
|
---|
8 | import org.openstreetmap.josm.gui.layer.imagery.ImageryFilterSettings;
|
---|
9 | import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * Unit tests of {@link ImageryLayer} class.
|
---|
13 | */
|
---|
14 | @BasicPreferences
|
---|
15 | class ImageryLayerTest {
|
---|
16 | /**
|
---|
17 | * Unit test of {@link ImageryLayer#getFilterSettings()}
|
---|
18 | */
|
---|
19 | @Test
|
---|
20 | void testHasSettings() {
|
---|
21 | ImageryLayer layer = TMSLayerTest.createTmsLayer();
|
---|
22 | ImageryFilterSettings settings = layer.getFilterSettings();
|
---|
23 | assertNotNull(settings);
|
---|
24 | assertSame(settings, layer.getFilterSettings());
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.