source: josm/trunk/test/unit/org/openstreetmap/josm/tools/GeoPropertyIndexTest.java@ 17442

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

see #20345 - add unit test

  • Property svn:eol-style set to native
File size: 780 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4import static org.junit.jupiter.api.Assertions.assertFalse;
5
6import java.util.Collections;
7
8import org.junit.jupiter.api.Test;
9import org.openstreetmap.josm.data.coor.LatLon;
10import org.openstreetmap.josm.data.osm.BBox;
11import org.openstreetmap.josm.tools.GeoPropertyIndex.GPLevel;
12
13/**
14 * Unit tests of {@link GeoPropertyIndex} class.
15 */
16class GeoPropertyIndexTest {
17
18 @Test
19 void testIsInside() {
20 assertFalse(new GPLevel<>(0,
21 new BBox(119.53125, 30.234375, 120.9375, 30.9375), null,
22 new GeoPropertyIndex<>(new DefaultGeoProperty(Collections.emptyList()), 24))
23 .isInside(new LatLon(30.580878544754302, 119.53124999999997)));
24 }
25}
Note: See TracBrowser for help on using the repository browser.