Changeset 11330 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2016-11-27T17:06:21+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - fix recent issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/UtilsTest.java

    r11324 r11330  
    33
    44import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertNull;
    65
    76import java.io.IOException;
     
    170169    /**
    171170     * Tests if readBytesFromStream handles null streams (might happen when there is no data on error stream)
    172      * @throws IOException
    173      *
     171     * @throws IOException in case of I/O error
    174172     */
    175173    @Test
    176174    public void testNullStreamForReadBytesFromStream() throws IOException {
    177         assertNull("Null on null stream", Utils.readBytesFromStream(null));
     175        assertEquals("Empty on null stream", 0, Utils.readBytesFromStream(null).length);
    178176    }
    179 
    180177}
Note: See TracChangeset for help on using the changeset viewer.