Ignore:
Timestamp:
2021-03-27T15:38:17+01:00 (5 years ago)
Author:
simon04
Message:

see #16567 - JUnit 5: use org.junit.jupiter.api.Assumptions

Location:
trunk/test/unit/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/JosmDecimalFormatSymbolsProviderTest.java

    r17280 r17677  
    22package org.openstreetmap.josm.tools;
    33
    4 import static org.junit.Assume.assumeTrue;
    54import static org.junit.jupiter.api.Assertions.assertEquals;
    65import static org.junit.jupiter.api.Assertions.assertTrue;
     6import static org.junit.jupiter.api.Assumptions.assumeTrue;
    77
    88import java.text.DecimalFormat;
  • trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookWindowsTest.java

    r17540 r17677  
    22package org.openstreetmap.josm.tools;
    33
    4 import static org.junit.Assume.assumeNotNull;
    54import static org.junit.jupiter.api.Assertions.assertEquals;
    65import static org.junit.jupiter.api.Assertions.assertFalse;
     
    173172    @Test
    174173    void testGetInstalledFonts() {
    175         assumeNotNull(FileSystems.getDefault()); // weird NPE on Jenkins
     174        assumeTrue(FileSystems.getDefault() != null); // weird NPE on Jenkins
    176175        assumeTrue(Utils.getJavaVersion() < 16 || PlatformManager.isPlatformWindows()); // No idea why the test fails with Java 16+ on Linux
    177176        Collection<String> fonts = hook.getInstalledFonts();
Note: See TracChangeset for help on using the changeset viewer.