Last change
on this file since 17531 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
|
Rev | Line | |
---|
[17442] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.tools;
|
---|
| 3 |
|
---|
| 4 | import static org.junit.jupiter.api.Assertions.assertFalse;
|
---|
| 5 |
|
---|
| 6 | import java.util.Collections;
|
---|
| 7 |
|
---|
| 8 | import org.junit.jupiter.api.Test;
|
---|
| 9 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
| 10 | import org.openstreetmap.josm.data.osm.BBox;
|
---|
| 11 | import org.openstreetmap.josm.tools.GeoPropertyIndex.GPLevel;
|
---|
| 12 |
|
---|
| 13 | /**
|
---|
| 14 | * Unit tests of {@link GeoPropertyIndex} class.
|
---|
| 15 | */
|
---|
| 16 | class 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.