kopia lustrzana https://github.com/JOSM/MapWithAI
MapWithAISourceReader#getBounds *must* return a modifiable list
Also, add @Territories annotation to a test that needed it Signed-off-by: Taylor Smock <tsmock@meta.com>pull/8/head
rodzic
9d685d9baa
commit
61d5b62689
|
@ -131,8 +131,8 @@ public class MapWithAISourceReader extends CommonSourceReader<List<MapWithAIInfo
|
|||
CountryUtils.getCountryShape(country.getKey()).ifPresent(bounds::add);
|
||||
}
|
||||
}
|
||||
return Collections.unmodifiableList(bounds);
|
||||
return bounds;
|
||||
}
|
||||
return Collections.emptyList();
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test;
|
|||
import org.junit.jupiter.api.extension.RegisterExtension;
|
||||
import org.openstreetmap.josm.data.Bounds;
|
||||
import org.openstreetmap.josm.plugins.mapwithai.backend.MapWithAIDataUtilsTest;
|
||||
import org.openstreetmap.josm.plugins.mapwithai.testutils.annotations.Territories;
|
||||
import org.openstreetmap.josm.plugins.mapwithai.testutils.annotations.Wiremock;
|
||||
import org.openstreetmap.josm.testutils.JOSMTestRules;
|
||||
import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
|
||||
|
@ -21,6 +22,7 @@ import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
|
|||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
||||
@BasicPreferences
|
||||
@Territories
|
||||
@Wiremock
|
||||
class MapWithAIDownloadSourceTypeTest {
|
||||
@RegisterExtension
|
||||
|
|
Ładowanie…
Reference in New Issue