Changeset 17677 in josm
- Timestamp:
- 2021-03-27T15:38:17+01:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java
r17571 r17677 7 7 import static org.junit.jupiter.api.Assertions.assertNull; 8 8 import static org.junit.jupiter.api.Assertions.assertTrue; 9 import static org.junit. Assume.assumeFalse;9 import static org.junit.jupiter.api.Assumptions.assumeFalse; 10 10 11 11 import java.awt.BorderLayout; -
trunk/test/unit/org/openstreetmap/josm/gui/datatransfer/ClipboardUtilsTest.java
r17275 r17677 7 7 import static org.junit.jupiter.api.Assertions.assertSame; 8 8 import static org.junit.jupiter.api.Assertions.assertTrue; 9 import static org.junit. Assume.assumeTrue;9 import static org.junit.jupiter.api.Assumptions.assumeTrue; 10 10 11 11 import java.awt.GraphicsEnvironment; -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTestIT.java
r17531 r17677 2 2 package org.openstreetmap.josm.gui.preferences.map; 3 3 4 import static org.junit.Assume.assumeFalse;5 import static org.junit.Assume.assumeTrue;6 4 import static org.junit.jupiter.api.Assertions.assertTrue; 5 import static org.junit.jupiter.api.Assumptions.assumeFalse; 6 import static org.junit.jupiter.api.Assumptions.assumeTrue; 7 7 8 8 import java.io.IOException; … … 105 105 // See https://github.com/apache/ant/pull/121 106 106 assertTrue(errors.isEmpty() && warnings.isEmpty(), displayName + " => " + errors + '\n' + warnings); 107 assumeTrue(ignoredErrors. toString(), ignoredErrors.isEmpty());107 assumeTrue(ignoredErrors.isEmpty(), ignoredErrors.toString()); 108 108 } 109 109 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTestIT.java
r17536 r17677 2 2 package org.openstreetmap.josm.gui.preferences.map; 3 3 4 import static org.junit.Assume.assumeFalse;5 import static org.junit.Assume.assumeTrue;6 4 import static org.junit.jupiter.api.Assertions.assertFalse; 7 5 import static org.junit.jupiter.api.Assertions.assertTrue; 6 import static org.junit.jupiter.api.Assumptions.assumeFalse; 7 import static org.junit.jupiter.api.Assumptions.assumeTrue; 8 8 9 9 import java.io.IOException; … … 104 104 // See https://github.com/apache/ant/pull/121 105 105 assertTrue(errors.isEmpty(), displayName + " => " + errors); 106 assumeTrue(ignoredErrors. toString(), ignoredErrors.isEmpty());106 assumeTrue(ignoredErrors.isEmpty(), ignoredErrors.toString()); 107 107 } 108 108 -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/validator/ValidatorTagCheckerRulesPreferenceTestIT.java
r17531 r17677 2 2 package org.openstreetmap.josm.gui.preferences.validator; 3 3 4 import static org.junit.Assume.assumeFalse;5 import static org.junit.Assume.assumeTrue;6 4 import static org.junit.jupiter.api.Assertions.assertFalse; 7 5 import static org.junit.jupiter.api.Assertions.assertTrue; 6 import static org.junit.jupiter.api.Assumptions.assumeFalse; 7 import static org.junit.jupiter.api.Assumptions.assumeTrue; 8 8 9 9 import java.io.IOException; … … 89 89 // See https://github.com/apache/ant/pull/121 90 90 assertTrue(errors.isEmpty(), displayName + " => " + errors); 91 assumeTrue(ignoredErrors. toString(), ignoredErrors.isEmpty());91 assumeTrue(ignoredErrors.isEmpty(), ignoredErrors.toString()); 92 92 } 93 93 } -
trunk/test/unit/org/openstreetmap/josm/io/CertificateAmendmentTestIT.java
r17275 r17677 2 2 package org.openstreetmap.josm.io; 3 3 4 import static org.junit. Assume.assumeFalse;4 import static org.junit.jupiter.api.Assumptions.assumeFalse; 5 5 6 6 import java.io.IOException; -
trunk/test/unit/org/openstreetmap/josm/tools/JosmDecimalFormatSymbolsProviderTest.java
r17280 r17677 2 2 package org.openstreetmap.josm.tools; 3 3 4 import static org.junit.Assume.assumeTrue;5 4 import static org.junit.jupiter.api.Assertions.assertEquals; 6 5 import static org.junit.jupiter.api.Assertions.assertTrue; 6 import static org.junit.jupiter.api.Assumptions.assumeTrue; 7 7 8 8 import java.text.DecimalFormat; -
trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookWindowsTest.java
r17540 r17677 2 2 package org.openstreetmap.josm.tools; 3 3 4 import static org.junit.Assume.assumeNotNull;5 4 import static org.junit.jupiter.api.Assertions.assertEquals; 6 5 import static org.junit.jupiter.api.Assertions.assertFalse; … … 173 172 @Test 174 173 void testGetInstalledFonts() { 175 assume NotNull(FileSystems.getDefault()); // weird NPE on Jenkins174 assumeTrue(FileSystems.getDefault() != null); // weird NPE on Jenkins 176 175 assumeTrue(Utils.getJavaVersion() < 16 || PlatformManager.isPlatformWindows()); // No idea why the test fails with Java 16+ on Linux 177 176 Collection<String> fonts = hook.getInstalledFonts();
Note:
See TracChangeset
for help on using the changeset viewer.