Ignore:
Timestamp:
2016-09-05T01:10:07+02:00 (8 years ago)
Author:
Don-vip
Message:

improve unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/io/CredentialDialogTest.java

    r9776 r10962  
    77import static org.junit.Assert.assertTrue;
    88
    9 import org.junit.BeforeClass;
     9import org.junit.Rule;
    1010import org.junit.Test;
    11 import org.openstreetmap.josm.JOSMFixture;
    1211import org.openstreetmap.josm.gui.io.CredentialDialog.CredentialPanel;
     12import org.openstreetmap.josm.testutils.JOSMTestRules;
     13
     14import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1315
    1416/**
     
    2022     * Setup tests
    2123     */
    22     @BeforeClass
    23     public static void setUpBeforeClass() {
    24         JOSMFixture.createUnitTestFixture().init();
    25     }
     24    @Rule
     25    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     26    public JOSMTestRules test = new JOSMTestRules().preferences();
    2627
    2728    /**
Note: See TracChangeset for help on using the changeset viewer.