Last change
on this file since 10378 was 10378, checked in by Don-vip, 8 years ago |
Checkstyle 6.19: enable SingleSpaceSeparator and fix violations
|
-
Property svn:eol-style
set to
native
|
File size:
1.2 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.preferences.audio;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertNotNull;
|
---|
5 |
|
---|
6 | import org.junit.BeforeClass;
|
---|
7 | import org.junit.Test;
|
---|
8 | import org.openstreetmap.josm.JOSMFixture;
|
---|
9 | import org.openstreetmap.josm.Main;
|
---|
10 | import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Unit tests of {@link AudioPreference} class.
|
---|
14 | */
|
---|
15 | public class AudioPreferenceTest {
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Setup test.
|
---|
19 | */
|
---|
20 | @BeforeClass
|
---|
21 | public static void setUpBeforeClass() {
|
---|
22 | JOSMFixture.createUnitTestFixture().init();
|
---|
23 | }
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * Unit test of {@link AudioPreference#AudioPreference}.
|
---|
27 | */
|
---|
28 | @Test
|
---|
29 | public void testAudioPreference() {
|
---|
30 | assertNotNull(new AudioPreference.Factory().createPreferenceSetting());
|
---|
31 | }
|
---|
32 |
|
---|
33 | /**
|
---|
34 | * Unit test of {@link AudioPreference#addGui}.
|
---|
35 | */
|
---|
36 | @Test
|
---|
37 | public void testAddGui() {
|
---|
38 | Main.pref.put("audio.menuinvisible", true);
|
---|
39 | PreferencesTestUtils.doTestPreferenceSettingAddGui(new AudioPreference.Factory(), null);
|
---|
40 | Main.pref.put("audio.menuinvisible", false);
|
---|
41 | PreferencesTestUtils.doTestPreferenceSettingAddGui(new AudioPreference.Factory(), null);
|
---|
42 | }
|
---|
43 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.