Last change
on this file since 9130 was 9007, checked in by wiktorn, 8 years ago |
Fix broken representation of URL-s in Imagery Preferences
|
File size:
882 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.imagery;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertEquals;
|
---|
5 |
|
---|
6 | import org.junit.BeforeClass;
|
---|
7 | import org.junit.Test;
|
---|
8 | import org.openstreetmap.josm.JOSMFixture;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | *
|
---|
12 | * Unit tests for class {@link ImageryInfo}.
|
---|
13 | *
|
---|
14 | */
|
---|
15 | public class ImageryInfoTest {
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Setup tests
|
---|
19 | */
|
---|
20 | @BeforeClass
|
---|
21 | public static void setUp() {
|
---|
22 | JOSMFixture.createUnitTestFixture().init();
|
---|
23 | }
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * Test if extended URL is returned properly
|
---|
27 | */
|
---|
28 | @Test
|
---|
29 | public void testGetExtendedUrl() {
|
---|
30 | ImageryInfo testImageryTMS = new ImageryInfo("test imagery", "http://localhost", "tms", null, null);
|
---|
31 | testImageryTMS.setDefaultMinZoom(16);
|
---|
32 | testImageryTMS.setDefaultMaxZoom(23);
|
---|
33 | assertEquals("tms[16,23]:http://localhost", testImageryTMS.getExtendedUrl());
|
---|
34 | }
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.