Ignore:
Timestamp:
2023-09-18T14:36:02+02:00 (18 months ago)
Author:
taylor.smock
Message:

Fix #19064: resolve all tools using Apache Ivy (JMapViewer)

JUnit was updated from v4 to v5 as well.

Location:
applications/viewer/jmapviewer/test/org/openstreetmap/gui/jmapviewer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/test/org/openstreetmap/gui/jmapviewer/TileRangeTest.java

    r34669 r36140  
    22package org.openstreetmap.gui.jmapviewer;
    33
    4 import static org.junit.Assert.assertEquals;
    54
    6 import org.junit.Test;
     5import static org.junit.jupiter.api.Assertions.assertEquals;
     6
     7import org.junit.jupiter.api.Test;
    78
    89/**
    910 * Unit tests of {@link TileRange} class.
    1011 */
    11 public class TileRangeTest {
     12class TileRangeTest {
    1213
    1314    /**
     
    1516     */
    1617    @Test
    17     public void testSize() {
     18    void testSize() {
    1819        assertEquals(16, new TileRange(
    1920                new TileXY(3, 3),
  • applications/viewer/jmapviewer/test/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSourceTest.java

    r35527 r36140  
    22package org.openstreetmap.gui.jmapviewer.tilesources;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertTrue;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertTrue;
    66
    77import java.text.MessageFormat;
     
    1111import java.util.stream.Stream;
    1212
    13 import org.junit.Test;
     13import org.junit.jupiter.api.Test;
    1414
    1515/**
     
    4949     */
    5050    @Test
    51     public void testGetTileUrl() {
     51    void testGetTileUrl() {
    5252        checkGetTileUrl(
    5353                "http://localhost/{z}/{x}/{y}",
     
    6161     */
    6262    @Test
    63     public void testGetTileUrl_positive_zoom() {
     63    void testGetTileUrl_positive_zoom() {
    6464        checkGetTileUrl(
    6565                "http://localhost/{zoom+5}/{x}/{y}",
     
    7373     */
    7474    @Test
    75     public void testGetTileUrl_negative_zoom() {
     75    void testGetTileUrl_negative_zoom() {
    7676        checkGetTileUrl(
    7777                "http://localhost/{zoom-5}/{x}/{y}",
     
    8585     */
    8686    @Test
    87     public void testGetTileUrl_inverse_negative_zoom() {
     87    void testGetTileUrl_inverse_negative_zoom() {
    8888        checkGetTileUrl(
    8989                "http://localhost/{5-zoom}/{x}/{y}",
     
    9797     */
    9898    @Test
    99     public void testGetTileUrl_both_offsets() {
     99    void testGetTileUrl_both_offsets() {
    100100        checkGetTileUrl(
    101101                "http://localhost/{10-zoom-5}/{x}/{y}",
     
    109109     */
    110110    @Test
    111     public void testGetTileUrl_apiKey() {
     111    void testGetTileUrl_apiKey() {
    112112        System.setProperty("id1.api-key", "wololo");
    113113        TileSourceInfo testImageryTMS = new TileSourceInfo("test imagery", "http://localhost/{zoom}/{x}/{y}?token={apikey}&foo=bar", "id1");
     
    120120     */
    121121    @Test
    122     public void testGetTileUrl_switch() {
     122    void testGetTileUrl_switch() {
    123123        TileSourceInfo testImageryTMS = new TileSourceInfo("test imagery", "http://{switch:a,b,c}.localhost/{10-zoom-5}/{x}/{y}", "id1");
    124124        TemplatedTMSTileSource ts = new TemplatedTMSTileSource(testImageryTMS);
     
    159159
    160160    @Test
    161     public void testGetTileUrl_yahoo() {
     161    void testGetTileUrl_yahoo() {
    162162        checkGetTileUrl(
    163163                "http://localhost/{z}/{x}/{!y}",
     
    169169
    170170    @Test
    171     public void testGetTileUrl_negative_y() {
     171    void testGetTileUrl_negative_y() {
    172172        checkGetTileUrl(
    173173                "http://localhost/{z}/{x}/{-y}",
     
    189189     */
    190190    @Test
    191     public void testAllUrls() {
     191    void testAllUrls() {
    192192        for (String[] test: TEST_DATA) {
    193193            TileSourceInfo testImageryTMS = new TileSourceInfo("test imagery", test[0], "id1");
Note: See TracChangeset for help on using the changeset viewer.