Last change
on this file since 18037 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:
924 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.dialogs.changeset.query;
|
---|
3 |
|
---|
4 | import static org.junit.jupiter.api.Assertions.assertNotNull;
|
---|
5 | import static org.junit.jupiter.api.Assertions.assertTrue;
|
---|
6 |
|
---|
7 | import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
|
---|
8 |
|
---|
9 | import org.junit.jupiter.api.Test;
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * Unit tests of {@link UrlBasedQueryPanel} class.
|
---|
13 | */
|
---|
14 | @BasicPreferences
|
---|
15 | class UrlBasedQueryPanelTest {
|
---|
16 | /**
|
---|
17 | * Unit test of {@link UrlBasedQueryPanel#UrlBasedQueryPanel}.
|
---|
18 | */
|
---|
19 | @Test
|
---|
20 | void testUrlBasedQueryPanel() {
|
---|
21 | assertNotNull(new UrlBasedQueryPanel());
|
---|
22 | }
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * Checks that examples displayed in panel are correct.
|
---|
26 | */
|
---|
27 | @Test
|
---|
28 | void testExamplesAreCorrect() {
|
---|
29 | for (String example : UrlBasedQueryPanel.getExamples()) {
|
---|
30 | assertTrue(UrlBasedQueryPanel.isValidChangesetQueryUrl(example), example);
|
---|
31 | }
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.