Changeset 10079 in josm


Ignore:
Timestamp:
2016-03-29T23:07:24+02:00 (4 years ago)
Author:
Don-vip
Message:

checkstyle, fix unit test

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapScaler.java

    r10078 r10079  
    2626    private final NavigatableComponent mv;
    2727
    28     private final static int PADDING_LEFT = 5;
    29     private final static int PADDING_RIGHT = 50;
     28    private static final int PADDING_LEFT = 5;
     29    private static final int PADDING_RIGHT = 50;
    3030
    3131    /**
     
    121121         * @param width The width of the mark.
    122122         */
    123         public TickMarks(double dist100Pixel, int width) {
     123        TickMarks(double dist100Pixel, int width) {
    124124            this.dist100Pixel = dist100Pixel;
    125125            lineDistance = dist100Pixel * width / 100;
  • trunk/src/org/openstreetmap/josm/io/CertificateAmendment.java

    r10076 r10079  
    9696            byte[] sha = md.digest(certBytes);
    9797            if (!SHA_HASHES[i].equals(Utils.toHexString(sha)))
    98                 throw new RuntimeException(tr("Error adding certificate {0} - hash mismatch. Expected {1}, was {2}", CERT_AMEND[i], SHA_HASHES[i], Utils.toHexString(sha)));
     98                throw new RuntimeException(tr("Error adding certificate {0} - hash mismatch. Expected {1}, was {2}",
     99                        CERT_AMEND[i], SHA_HASHES[i], Utils.toHexString(sha)));
    99100
    100101            ByteArrayInputStream certIS = new ByteArrayInputStream(certBytes);
  • trunk/test/unit/org/openstreetmap/josm/gui/TableCellRendererTest.java

    r10020 r10079  
    3232 * value to check if a NPE is thrown.
    3333 *
    34  * @see #6301
     34 * @see <a href="https://josm.openstreetmap.de/ticket/6301">#6301</a>
    3535 */
    3636public class TableCellRendererTest {
    3737
    38     // list of classes that cannot be easily tested and are verified manually
     38    // list of classes that cannot be easily tested and are verified either manually or another unit tests
    3939    private static final Collection<String> SKIP_TEST = Arrays.asList(
    40         "org.openstreetmap.josm.gui.dialogs.FilterDialog$BooleanRenderer"
     40        "org.openstreetmap.josm.gui.dialogs.FilterDialog$BooleanRenderer",
     41        "org.openstreetmap.josm.gui.dialogs.relation.SelectionTableCellRenderer"
    4142    );
    4243
     
    4950    }
    5051
     52    /**
     53     * Unit test of all table cell renderers against null values.
     54     */
    5155    @Test
    5256    public void tableCellRendererTest() {
Note: See TracChangeset for help on using the changeset viewer.