()
| 160 | } |
| 161 | |
| 162 | @Test |
| 163 | public void testEmptyBlob() |
| 164 | throws IOException |
| 165 | { |
| 166 | IonBlob value = (IonBlob) oneValue("{{ }}"); |
| 167 | assertFalse(value.isNullValue()); |
| 168 | |
| 169 | InputStream in = value.newInputStream(); |
| 170 | assertEquals("should be at EOF", -1, in.read()); |
| 171 | |
| 172 | byte[] bytes = value.getBytes(); |
| 173 | assertEquals(0, bytes.length); |
| 174 | |
| 175 | StringBuilder buf = new StringBuilder(); |
| 176 | value.printBase64(buf); |
| 177 | assertEquals(0, buf.length()); |
| 178 | } |
| 179 | |
| 180 | @Test |
| 181 | public void testByteSize() |
nothing calls this directly
no test coverage detected