Ignore:
Timestamp:
2023-03-21T14:49:10+01:00 (22 months ago)
Author:
taylor.smock
Message:

See #16567: Convert most plugin tests to JUnit 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/print/test/unit/org/openstreetmap/josm/plugins/print/PrintDialogTest.java

    r33118 r36064  
    22package org.openstreetmap.josm.plugins.print;
    33
    4 import static org.junit.Assert.assertEquals;
     4
     5import static org.junit.jupiter.api.Assertions.assertEquals;
    56
    67import java.util.Arrays;
     
    89import javax.print.attribute.standard.OrientationRequested;
    910
    10 import org.junit.Ignore;
    11 import org.junit.Rule;
    12 import org.junit.Test;
    13 import org.openstreetmap.josm.testutils.JOSMTestRules;
     11import org.junit.jupiter.api.Disabled;
     12import org.junit.jupiter.api.Test;
     13import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
    1414
    1515/**
    1616 * Unit test of {@link PrintDialog} class.
    1717 */
    18 public class PrintDialogTest {
    19 
    20     /**
    21      * Setup test.
    22      */
    23     @Rule
    24     public JOSMTestRules rules = new JOSMTestRules().preferences();
    25 
     18@BasicPreferences
     19class PrintDialogTest {
    2620    /**
    2721     * Unit test of {@link PrintDialog#unmarshallPrintSetting}
     
    2923     */
    3024    @Test
    31     public void testUnmarshallPrintSetting() throws ReflectiveOperationException {
     25    void testUnmarshallPrintSetting() throws ReflectiveOperationException {
    3226        assertEquals(OrientationRequested.PORTRAIT, PrintDialog.unmarshallPrintSetting(Arrays.asList(
    3327                "javax.print.attribute.standard.OrientationRequested",
     
    4236     */
    4337    @Test
    44     @Ignore("not fixed yet")
    45     public void testTicket13302() throws ReflectiveOperationException {
     38    @Disabled("not fixed yet")
     39    void testTicket13302() throws ReflectiveOperationException {
    4640        assertEquals(OrientationRequested.PORTRAIT, PrintDialog.unmarshallPrintSetting(Arrays.asList(
    4741                "javax.print.attribute.standard.MediaSizeName",
Note: See TracChangeset for help on using the changeset viewer.