Fix test that failed due to JOSM #18436 (a fix that is included in the 18436.1.patch)

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head
Taylor Smock 2019-12-18 16:02:20 -07:00
rodzic 6f105c004b
commit 54a1aa1f1f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -23,6 +23,7 @@ import org.junit.Rule;
import org.junit.Test;
import org.openstreetmap.josm.TestUtils;
import org.openstreetmap.josm.data.Bounds;
import org.openstreetmap.josm.data.Version;
import org.openstreetmap.josm.data.coor.LatLon;
import org.openstreetmap.josm.data.gpx.GpxData;
import org.openstreetmap.josm.data.gpx.WayPoint;
@ -93,7 +94,10 @@ public class MapWithAIDataUtilsTest {
final BBox testBBox = getTestBBox();
final BBox testBBox2 = new BBox(-108.4495519, 39.095376, -108.4422314, 39.0987811);
final DataSet ds = new DataSet(MapWithAIDataUtils.getData(Arrays.asList(testBBox, testBBox2)));
assertEquals(2, ds.getDataSourceBounds().size());
// TODO https://josm.openstreetmap.de/ticket/18436 replace 20_000 with
// appropriate version number when merged
int expectedBounds = Version.getInstance().getVersion() > 20_000 ? 2 : 4;
assertEquals(expectedBounds, ds.getDataSourceBounds().size(), "There should be two data sources");
}
/**