source: josm/trunk/test/unit/org/openstreetmap/josm/gui/preferences/advanced/ExportProfileActionTest.java@ 9943

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

add more unit tests

  • Property svn:eol-style set to native
File size: 791 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.preferences.advanced;
3
4import org.junit.BeforeClass;
5import org.junit.Test;
6import org.openstreetmap.josm.JOSMFixture;
7import org.openstreetmap.josm.Main;
8
9/**
10 * Unit tests of {@link ExportProfileAction} class.
11 */
12public class ExportProfileActionTest {
13
14 /**
15 * Setup test.
16 */
17 @BeforeClass
18 public static void setUpBeforeClass() {
19 JOSMFixture.createUnitTestFixture().init();
20 }
21
22 /**
23 * Unit test of {@link ExportProfileAction#actionPerformed}.
24 */
25 @Test
26 public void testAction() {
27 new ExportProfileAction(Main.pref, "foo", "bar").actionPerformed(null);
28 new ExportProfileAction(Main.pref, "expert", "expert").actionPerformed(null);
29 }
30}
Note: See TracBrowser for help on using the repository browser.