source: josm/trunk/test/unit/org/openstreetmap/josm/gui/download/BoundingBoxSelectionTest.java@ 9606

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

add more unit tests

File size: 846 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.download;
3
4import org.junit.BeforeClass;
5import org.junit.Test;
6import org.openstreetmap.josm.JOSMFixture;
7import org.openstreetmap.josm.data.Bounds;
8
9/**
10 * Unit tests of {@link BoundingBoxSelection} class.
11 */
12public class BoundingBoxSelectionTest {
13
14 /**
15 * Setup tests
16 */
17 @BeforeClass
18 public static void setUpBeforeClass() {
19 JOSMFixture.createUnitTestFixture().init();
20 }
21
22 /**
23 * Test for {@link BoundingBoxSelection#BoundingBoxSelection}.
24 */
25 @Test
26 public void testBoundingBoxSelection() {
27 BoundingBoxSelection sel = new BoundingBoxSelection();
28 sel.addGui(null);
29 sel.setDownloadArea(null);
30 sel.setDownloadArea(new Bounds(0, 0, 1, 1));
31 }
32}
Note: See TracBrowser for help on using the repository browser.