Changeset 11330 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2016-11-27T17:06:21+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/UtilsTest.java
r11324 r11330 3 3 4 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.assertNull;6 5 7 6 import java.io.IOException; … … 170 169 /** 171 170 * 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 174 172 */ 175 173 @Test 176 174 public void testNullStreamForReadBytesFromStream() throws IOException { 177 assert Null("Null on null stream", Utils.readBytesFromStream(null));175 assertEquals("Empty on null stream", 0, Utils.readBytesFromStream(null).length); 178 176 } 179 180 177 }
Note:
See TracChangeset
for help on using the changeset viewer.