source: josm/trunk/test/unit/org/openstreetmap/josm/gui/mappaint/AllMappaintTests.java

Last change on this file was 18690, checked in by taylor.smock, 13 months ago

See #16567: Convert all assertion calls to JUnit 5 (patch by gaben, modified)

The modifications are as follows:

  • Merge DomainValidatorTest.testIDN and DomainValidatorTest.testIDNJava6OrLater
  • Update some tests to use @ParameterizedTest (DomainValidatorTest)
  • Replace various exception blocks with assertThrows. These typically looked like
        try {
            // Something that should throw an exception here
            fail("An exception should have been thrown");
        } catch (Exception e) {
            // Verify the exception matches expectations here
        }
    
  • Replace assertTrue(val instanceof Clazz) with assertInstanceOf
  • Replace JUnit 4 @Suite with JUnit 5 @Suite

Both the original patch and the modified patch fix various lint issues.

  • Property svn:eol-style set to native
File size: 454 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.mappaint;
3
4import org.junit.platform.suite.api.SelectClasses;
5import org.junit.platform.suite.api.Suite;
6import org.openstreetmap.josm.gui.mappaint.mapcss.AllMapCSSTests;
7
8/**
9 * All mappaint tests.
10 */
11@Suite
12@SelectClasses({
13 LabelCompositionStrategyTest.class,
14 MapCSSWithExtendedTextDirectivesTest.class,
15 AllMapCSSTests.class
16})
17class AllMappaintTests {
18
19}
Note: See TracBrowser for help on using the repository browser.