()
| 278 | } |
| 279 | |
| 280 | @Test |
| 281 | public void verifyToString() { |
| 282 | Metadata h = new Metadata(); |
| 283 | h.put(KEY, new Fish("binary")); |
| 284 | h.put(Metadata.Key.of("test", Metadata.ASCII_STRING_MARSHALLER), "ascii"); |
| 285 | assertEquals("Metadata(test-bin=YmluYXJ5,test=ascii)", h.toString()); |
| 286 | |
| 287 | Metadata t = new Metadata(); |
| 288 | t.put(Metadata.Key.of("test", Metadata.ASCII_STRING_MARSHALLER), "ascii"); |
| 289 | assertEquals("Metadata(test=ascii)", t.toString()); |
| 290 | |
| 291 | t = new Metadata("test".getBytes(US_ASCII), "ascii".getBytes(US_ASCII), |
| 292 | "test-bin".getBytes(US_ASCII), "binary".getBytes(US_ASCII)); |
| 293 | assertEquals("Metadata(test=ascii,test-bin=YmluYXJ5)", t.toString()); |
| 294 | } |
| 295 | |
| 296 | @Test |
| 297 | public void verifyToString_usingBinary() { |
nothing calls this directly
no test coverage detected